diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2009-08-03 02:45:34 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2009-08-03 02:45:34 +0000 |
commit | def390a30aa8c3eb94796a062b161762330fdbe4 (patch) | |
tree | 3ef19bacf36cf203f7f78a4aeb024397ce332194 /test | |
parent | a8e8984ee4c197634839cf228f5b1d79a77fa4b9 (diff) | |
download | external_llvm-def390a30aa8c3eb94796a062b161762330fdbe4.zip external_llvm-def390a30aa8c3eb94796a062b161762330fdbe4.tar.gz external_llvm-def390a30aa8c3eb94796a062b161762330fdbe4.tar.bz2 |
Use movq to move 64 bits in and out of mmx registers.
Fixes PR4669
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/2009-08-02-mmx-scalar-to-vector.ll | 10 | ||||
-rw-r--r-- | test/CodeGen/X86/mmx-bitcast-to-i64.ll | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/test/CodeGen/X86/2009-08-02-mmx-scalar-to-vector.ll b/test/CodeGen/X86/2009-08-02-mmx-scalar-to-vector.ll new file mode 100644 index 0000000..083538a --- /dev/null +++ b/test/CodeGen/X86/2009-08-02-mmx-scalar-to-vector.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llc -march=x86-64 +; PR4669 +declare <1 x i64> @llvm.x86.mmx.pslli.q(<1 x i64>, i32) + +define <1 x i64> @test(i64 %t) { +entry: + %t1 = insertelement <1 x i64> undef, i64 %t, i32 0 + %t2 = tail call <1 x i64> @llvm.x86.mmx.pslli.q(<1 x i64> %t1, i32 48) + ret <1 x i64> %t2 +} diff --git a/test/CodeGen/X86/mmx-bitcast-to-i64.ll b/test/CodeGen/X86/mmx-bitcast-to-i64.ll index c6bb489..04c4dd05 100644 --- a/test/CodeGen/X86/mmx-bitcast-to-i64.ll +++ b/test/CodeGen/X86/mmx-bitcast-to-i64.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc -march=x86-64 | grep movd | count 4 +; RUN: llvm-as < %s | llc -march=x86-64 | grep movq | count 8 define i64 @foo(<1 x i64>* %p) { %t = load <1 x i64>* %p |