[llvm-commits] [llvm] r137361 - in /llvm/trunk/test/CodeGen/X86: avx-insert.ll avx-load-store.ll
Bruno Cardoso Lopes
bruno.cardoso at gmail.com
Thu Aug 11 14:50:35 PDT 2011
Author: bruno
Date: Thu Aug 11 16:50:35 2011
New Revision: 137361
URL: http://llvm.org/viewvc/llvm-project?rev=137361&view=rev
Log:
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
Removed:
llvm/trunk/test/CodeGen/X86/avx-insert.ll
Modified:
llvm/trunk/test/CodeGen/X86/avx-load-store.ll
Removed: llvm/trunk/test/CodeGen/X86/avx-insert.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx-insert.ll?rev=137360&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/avx-insert.ll (original)
+++ llvm/trunk/test/CodeGen/X86/avx-insert.ll (removed)
@@ -1,17 +0,0 @@
-; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
-
-; It is faster to make two saves, if the data is already in XMM registers. For
-; example, after making an integer operation.
-define void @double_save(<4 x i32>* %Ap, <4 x i32>* %Bp, <8 x i32>* %P) nounwind ssp {
-entry:
- ; CHECK: movaps
- ; CHECK: movaps
- ; CHECK: movaps
- ; CHECK: movaps
- %A = load <4 x i32>* %Ap
- %B = load <4 x i32>* %Bp
- %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
-}
-
Modified: llvm/trunk/test/CodeGen/X86/avx-load-store.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx-load-store.ll?rev=137361&r1=137360&r2=137361&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/avx-load-store.ll (original)
+++ llvm/trunk/test/CodeGen/X86/avx-load-store.ll Thu Aug 11 16:50:35 2011
@@ -64,3 +64,17 @@
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
+}
+
More information about the llvm-commits
mailing list