summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SLPVectorizer/X86/fma.ll
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-11-30 22:53:21 +0000
committerCraig Topper <craig.topper@intel.com>2018-11-30 22:53:21 +0000
commit502fc1bdd5500a0b8fd0fc2ce88817b8fa90f640 (patch)
tree952572e4ea47689ff1423de04cf57cf764613454 /llvm/test/Transforms/SLPVectorizer/X86/fma.ll
parent398728732e7a3cd94d399905aea6480216baf454 (diff)
downloadbcm5719-llvm-502fc1bdd5500a0b8fd0fc2ce88817b8fa90f640.tar.gz
bcm5719-llvm-502fc1bdd5500a0b8fd0fc2ce88817b8fa90f640.zip
[X86] Split skylake-avx512 run lines in SLP vectorizer tests to cover -mprefer=vector-width=256 and -mprefer-vector-width=512.
This will make these tests immune if we ever change the default behavior of -march=skylake-avx512 to prefer 256 bit vectors. llvm-svn: 348046
Diffstat (limited to 'llvm/test/Transforms/SLPVectorizer/X86/fma.ll')
-rw-r--r--llvm/test/Transforms/SLPVectorizer/X86/fma.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/Transforms/SLPVectorizer/X86/fma.ll b/llvm/test/Transforms/SLPVectorizer/X86/fma.ll
index b30c3406161..95b6a71e545 100644
--- a/llvm/test/Transforms/SLPVectorizer/X86/fma.ll
+++ b/llvm/test/Transforms/SLPVectorizer/X86/fma.ll
@@ -3,7 +3,8 @@
; RUN: opt < %s -mtriple=x86_64-unknown -mcpu=corei7-avx -basicaa -slp-vectorizer -S | FileCheck %s --check-prefix=NO-FMA
; RUN: opt < %s -mtriple=x86_64-unknown -mcpu=bdver1 -basicaa -slp-vectorizer -S | FileCheck %s --check-prefix=FMA --check-prefix=FMA256
; RUN: opt < %s -mtriple=x86_64-unknown -mcpu=core-avx2 -basicaa -slp-vectorizer -S | FileCheck %s --check-prefix=FMA --check-prefix=FMA256
-; RUN: opt < %s -mtriple=x86_64-unknown -mcpu=skylake-avx512 -basicaa -slp-vectorizer -S | FileCheck %s --check-prefix=FMA --check-prefix=FMA512
+; RUN: opt < %s -mtriple=x86_64-unknown -mcpu=skylake-avx512 -mattr=-prefer-256-bit -basicaa -slp-vectorizer -S | FileCheck %s --check-prefix=FMA --check-prefix=FMA512
+; RUN: opt < %s -mtriple=x86_64-unknown -mcpu=skylake-avx512 -mattr=+prefer-256-bit -basicaa -slp-vectorizer -S | FileCheck %s --check-prefix=FMA --check-prefix=FMA256
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
OpenPOWER on IntegriCloud