diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll b/llvm/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll new file mode 100644 index 00000000000..56015c6473b --- /dev/null +++ b/llvm/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll @@ -0,0 +1,10 @@ +; 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 +} + |