[SLP][X86] Add AVX2 run to POW2 SDIV Tests
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 15 Jun 2018 10:29:37 +0000 (10:29 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 15 Jun 2018 10:29:37 +0000 (10:29 +0000)
Non-uniform pow2 tests are only make sense on targets with fast (low cost) non-uniform shifts

llvm-svn: 334821

llvm/test/Transforms/SLPVectorizer/X86/powof2div.ll

index 60e9836..96e75cd 100644 (file)
@@ -1,5 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -basicaa -slp-vectorizer -S -mtriple=x86_64-unknown-linux-gnu -mattr=+avx | FileCheck %s
+; RUN: opt < %s -basicaa -slp-vectorizer -S -mtriple=x86_64-unknown-linux-gnu -mattr=+avx  | FileCheck %s --check-prefixes=CHECK,AVX1
+; RUN: opt < %s -basicaa -slp-vectorizer -S -mtriple=x86_64-unknown-linux-gnu -mattr=+avx2 | FileCheck %s --check-prefixes=CHECK,AVX2
 
 define void @powof2div_uniform(i32* noalias nocapture %a, i32* noalias nocapture readonly %b, i32* noalias nocapture readonly %c){
 ; CHECK-LABEL: @powof2div_uniform(