diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-06-07 09:41:57 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-06-07 09:41:57 +0000 |
commit | f10d3a7bcda97d28f9d325cb58cec7e17d7ed101 (patch) | |
tree | e7cfa9ef1cec2daf5445a2a27064da11ac353ce1 /test | |
parent | 5d28eb9e9780a19d03ff106fdc609b1587cd6003 (diff) | |
download | llvm-f10d3a7bcda97d28f9d325cb58cec7e17d7ed101.tar.gz llvm-f10d3a7bcda97d28f9d325cb58cec7e17d7ed101.tar.bz2 llvm-f10d3a7bcda97d28f9d325cb58cec7e17d7ed101.tar.xz |
Tweak the expansion code for BIT_CONVERT to generate better code
converting from an MMX vector to an i64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll b/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll new file mode 100644 index 0000000000..56015c6473 --- /dev/null +++ b/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 +} + |