[llvm] r279406 - [CostModel][X86] Removed shift tests

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 21 12:56:02 PDT 2016


Author: rksimon
Date: Sun Aug 21 14:56:02 2016
New Revision: 279406

URL: http://llvm.org/viewvc/llvm-project?rev=279406&view=rev
Log:
[CostModel][X86] Removed shift tests

There are more thorough tests found in vshift-*-cost.ll 

Modified:
    llvm/trunk/test/Analysis/CostModel/X86/arith.ll

Modified: llvm/trunk/test/Analysis/CostModel/X86/arith.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/CostModel/X86/arith.ll?rev=279406&r1=279405&r2=279406&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/CostModel/X86/arith.ll (original)
+++ llvm/trunk/test/Analysis/CostModel/X86/arith.ll Sun Aug 21 14:56:02 2016
@@ -520,83 +520,3 @@ define void @mul_2i32() {
 
   ret void
 }
-
-; CHECK-LABEL: 'shift'
-define void @shift() {
-  ; SSSE3: cost of 10 {{.*}} %A0 = shl
-  ; SSE42: cost of 10 {{.*}} %A0 = shl
-  ; AVX: cost of 10 {{.*}} %A0 = shl
-  ; AVX2: cost of 1 {{.*}} %A0 = shl
-  ; AVX512: cost of 1 {{.*}} %A0 = shl
-  %A0 = shl <4 x i32> undef, undef
-  ; SSSE3: cost of 4 {{.*}} %A1 = shl
-  ; SSE42: cost of 4 {{.*}} %A1 = shl
-  ; AVX: cost of 4 {{.*}} %A1 = shl
-  ; AVX2: cost of 1 {{.*}} %A1 = shl
-  ; AVX512: cost of 1 {{.*}} %A1 = shl
-  %A1 = shl <2 x i64> undef, undef
-  ; SSSE3: cost of 20 {{.*}} %A2 = shl
-  ; SSE42: cost of 20 {{.*}} %A2 = shl
-  ; AVX: cost of 20 {{.*}} %A2 = shl
-  ; AVX2: cost of 1 {{.*}} %A2 = shl
-  ; AVX512: cost of 1 {{.*}} %A2 = shl
-  %A2 = shl <8 x i32> undef, undef
-  ; SSSE3: cost of 8 {{.*}} %A3 = shl
-  ; SSE42: cost of 8 {{.*}} %A3 = shl
-  ; AVX: cost of 8 {{.*}} %A3 = shl
-  ; AVX2: cost of 1 {{.*}} %A3 = shl
-  ; AVX512: cost of 1 {{.*}} %A3 = shl
-  %A3 = shl <4 x i64> undef, undef
-
-  ; SSSE3: cost of 16 {{.*}} %B0 = lshr
-  ; SSE42: cost of 16 {{.*}} %B0 = lshr
-  ; AVX: cost of 16 {{.*}} %B0 = lshr
-  ; AVX2: cost of 1 {{.*}} %B0 = lshr
-  ; AVX512: cost of 1 {{.*}} %B0 = lshr
-  %B0 = lshr <4 x i32> undef, undef
-  ; SSSE3: cost of 4 {{.*}} %B1 = lshr
-  ; SSE42: cost of 4 {{.*}} %B1 = lshr
-  ; AVX: cost of 4 {{.*}} %B1 = lshr
-  ; AVX2: cost of 1 {{.*}} %B1 = lshr
-  ; AVX512: cost of 1 {{.*}} %B1 = lshr
-  %B1 = lshr <2 x i64> undef, undef
-  ; SSSE3: cost of 32 {{.*}} %B2 = lshr
-  ; SSE42: cost of 32 {{.*}} %B2 = lshr
-  ; AVX: cost of 32 {{.*}} %B2 = lshr
-  ; AVX2: cost of 1 {{.*}} %B2 = lshr
-  ; AVX512: cost of 1 {{.*}} %B2 = lshr
-  %B2 = lshr <8 x i32> undef, undef
-  ; SSSE3: cost of 8 {{.*}} %B3 = lshr
-  ; SSE42: cost of 8 {{.*}} %B3 = lshr
-  ; AVX: cost of 8 {{.*}} %B3 = lshr
-  ; AVX2: cost of 1 {{.*}} %B3 = lshr
-  ; AVX512: cost of 1 {{.*}} %B3 = lshr
-  %B3 = lshr <4 x i64> undef, undef
-
-  ; SSSE3: cost of 16 {{.*}} %C0 = ashr
-  ; SSE42: cost of 16 {{.*}} %C0 = ashr
-  ; AVX: cost of 16 {{.*}} %C0 = ashr
-  ; AVX2: cost of 1 {{.*}} %C0 = ashr
-  ; AVX512: cost of 1 {{.*}} %C0 = ashr
-  %C0 = ashr <4 x i32> undef, undef
-  ; SSSE3: cost of 12 {{.*}} %C1 = ashr
-  ; SSE42: cost of 12 {{.*}} %C1 = ashr
-  ; AVX: cost of 12 {{.*}} %C1 = ashr
-  ; AVX2: cost of 4 {{.*}} %C1 = ashr
-  ; AVX512: cost of 4 {{.*}} %C1 = ashr
-  %C1 = ashr <2 x i64> undef, undef
-  ; SSSE3: cost of 32 {{.*}} %C2 = ashr
-  ; SSE42: cost of 32 {{.*}} %C2 = ashr
-  ; AVX: cost of 32 {{.*}} %C2 = ashr
-  ; AVX2: cost of 1 {{.*}} %C2 = ashr
-  ; AVX512: cost of 1 {{.*}} %C2 = ashr
-  %C2 = ashr <8 x i32> undef, undef
-  ; SSSE3: cost of 24 {{.*}} %C3 = ashr
-  ; SSE42: cost of 24 {{.*}} %C3 = ashr
-  ; AVX: cost of 24 {{.*}} %C3 = ashr
-  ; AVX2: cost of 4 {{.*}} %C3 = ashr
-  ; AVX512: cost of 4 {{.*}} %C3 = ashr
-  %C3 = ashr <4 x i64> undef, undef
-
-  ret void
-}




More information about the llvm-commits mailing list