diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-08-11 21:50:35 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-08-11 21:50:35 +0000 |
commit | 9eb3762e086aea376201bf9320c1e03bcc2f29b7 (patch) | |
tree | dcc51be2f5b71770efd7d0083e069984865870aa /llvm/test/CodeGen/X86/avx-load-store.ll | |
parent | 0861be0c304651c590104a0a5b3023e46703f709 (diff) | |
download | bcm5719-llvm-9eb3762e086aea376201bf9320c1e03bcc2f29b7.tar.gz bcm5719-llvm-9eb3762e086aea376201bf9320c1e03bcc2f29b7.zip |
Fix the test added by Nadav in r137308. Make it more strict:
1) check for the "v" version of movaps
2) add a couple of CHECK-NOT to guarantee the behavior
3) move to a more appropriate test file
llvm-svn: 137361
Diffstat (limited to 'llvm/test/CodeGen/X86/avx-load-store.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/avx-load-store.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/avx-load-store.ll b/llvm/test/CodeGen/X86/avx-load-store.ll index d191af88638..f70291b96e1 100644 --- a/llvm/test/CodeGen/X86/avx-load-store.ll +++ b/llvm/test/CodeGen/X86/avx-load-store.ll @@ -64,3 +64,17 @@ define void @storev32i8_01(<32 x i8> %a) nounwind { unreachable } +; It is faster to make two saves, if the data is already in XMM registers. For +; example, after making an integer operation. +; CHECK: _double_save +; CHECK-NOT: vinsertf128 $1 +; CHECK-NOT: vinsertf128 $0 +; CHECK: vmovaps %xmm +; CHECK: vmovaps %xmm +define void @double_save(<4 x i32> %A, <4 x i32> %B, <8 x i32>* %P) nounwind ssp { +entry: + %Z = shufflevector <4 x i32>%A, <4 x i32>%B, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> + store <8 x i32> %Z, <8 x i32>* %P, align 16 + ret void +} + |