; RUN: llvm-as < %s | llc | 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
}


; RUN: llvm-as < %s | llc -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
}


Fix the run-line for this test to work correctly outside of x86.
Fix the run-line for this test to work correctly outside of x86.



git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@73025 91177308-0d34-0410-b5e6-96231b3b80d8
