llvm.org GIT mirror llvm / release_27 test / CodeGen / X86 / 2009-06-07-ExpandMMXBitcast.ll
release_27

Tree @release_27 (Download .tar.gz)

2009-06-07-ExpandMMXBitcast.ll @release_27raw · history · blame

1
2
3
4
5
6
7
8
9
; RUN: llc < %s -march=x86 -mattr=+mmx | grep movl | count 2

define i64 @a(i32 %a, i32 %b) nounwind readnone {
entry:
	%0 = insertelement <2 x i32> undef, i32 %a, i32 0		; <<2 x i32>> [#uses=1]
	%1 = insertelement <2 x i32> %0, i32 %b, i32 1		; <<2 x i32>> [#uses=1]
	%conv = bitcast <2 x i32> %1 to i64		; <i64> [#uses=1]
	ret i64 %conv
}