[llvm] r310606 - [CostModel][X86] Added v2f64/v2i64 single src shuffle model tests

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 10 08:25:08 PDT 2017


Author: rksimon
Date: Thu Aug 10 08:25:08 2017
New Revision: 310606

URL: http://llvm.org/viewvc/llvm-project?rev=310606&view=rev
Log:
[CostModel][X86] Added v2f64/v2i64 single src shuffle model tests

Fixed label checks for all prefixes

Modified:
    llvm/trunk/test/Analysis/CostModel/X86/shuffle-single-src.ll

Modified: llvm/trunk/test/Analysis/CostModel/X86/shuffle-single-src.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/CostModel/X86/shuffle-single-src.ll?rev=310606&r1=310605&r2=310606&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/CostModel/X86/shuffle-single-src.ll (original)
+++ llvm/trunk/test/Analysis/CostModel/X86/shuffle-single-src.ll Thu Aug 10 08:25:08 2017
@@ -10,8 +10,17 @@
 ; Verify the cost model for 1 src shuffles
 ;
 
-; AVX512-LABEL: 'test_vXf64'
-define void @test_vXf64(<4 x double> %src256, <8 x double> %src512, <16 x double> %src1024) {
+; CHECK-LABEL: 'test_vXf64'
+define void @test_vXf64(<2 x double> %src128, <4 x double> %src256, <8 x double> %src512, <16 x double> %src1024) {
+
+  ; SSE2: cost of 2 {{.*}} %V128 = shufflevector
+  ; SSSE3: cost of 2 {{.*}} %V128 = shufflevector
+  ; SSE42: cost of 2 {{.*}} %V128 = shufflevector
+  ; AVX1: cost of 2 {{.*}} %V128 = shufflevector
+  ; AVX2: cost of 2 {{.*}} %V128 = shufflevector
+  ; AVX512: cost of 1 {{.*}} %V128 = shufflevector
+  %V128 = shufflevector <2 x double> %src128, <2 x double> undef, <2 x i32> <i32 1, i32 1>
+
   ; SSE2: cost of 4 {{.*}} %V256 = shufflevector
   ; SSSE3: cost of 4 {{.*}} %V256 = shufflevector
   ; SSE42: cost of 4 {{.*}} %V256 = shufflevector
@@ -39,8 +48,16 @@ define void @test_vXf64(<4 x double> %sr
   ret void
 }
 
-; AVX512-LABEL: 'test_vXi64'
-define void @test_vXi64(<4 x i64> %src256, <8 x i64> %src512) {
+; CHECK-LABEL: 'test_vXi64'
+define void @test_vXi64(<2 x i64> %src128, <4 x i64> %src256, <8 x i64> %src512) {
+
+  ; SSE2: cost of 1 {{.*}} %V128 = shufflevector
+  ; SSSE3: cost of 1 {{.*}} %V128 = shufflevector
+  ; SSE42: cost of 1 {{.*}} %V128 = shufflevector
+  ; AVX1: cost of 1 {{.*}} %V128 = shufflevector
+  ; AVX2: cost of 1 {{.*}} %V128 = shufflevector
+  ; AVX512: cost of 1 {{.*}} %V128 = shufflevector
+  %V128 = shufflevector <2 x i64> %src128, <2 x i64> undef, <2 x i32> <i32 1, i32 1>
 
   ; SSE2: cost of 8 {{.*}} %V256 = shufflevector
   ; SSSE3: cost of 8 {{.*}} %V256 = shufflevector




More information about the llvm-commits mailing list