diff options
author | Renato Golin <renato.golin@linaro.org> | 2013-12-07 21:46:08 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2013-12-07 21:46:08 +0000 |
commit | 1de81334024df0f59ef2e5f1af2701ca7c04068c (patch) | |
tree | 063fc88924de7829f7c86e209a2add41bd8185dd /test | |
parent | 7ae72bfd9470e5f91e43652cafe15e0c56b4b3d1 (diff) | |
download | llvm-1de81334024df0f59ef2e5f1af2701ca7c04068c.tar.gz llvm-1de81334024df0f59ef2e5f1af2701ca7c04068c.tar.bz2 llvm-1de81334024df0f59ef2e5f1af2701ca7c04068c.tar.xz |
force vector width via cpu on vectorizer metadata enable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/LoopVectorize/X86/metadata-enable.ll | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/Transforms/LoopVectorize/X86/metadata-enable.ll b/test/Transforms/LoopVectorize/X86/metadata-enable.ll index fff3c0e808..e98a4acdde 100644 --- a/test/Transforms/LoopVectorize/X86/metadata-enable.ll +++ b/test/Transforms/LoopVectorize/X86/metadata-enable.ll @@ -1,13 +1,13 @@ -; RUN: opt < %s -O1 -S | FileCheck %s --check-prefix=O1 -; RUN: opt < %s -O2 -S | FileCheck %s --check-prefix=O2 -; RUN: opt < %s -O3 -S | FileCheck %s --check-prefix=O3 -; RUN: opt < %s -Os -S | FileCheck %s --check-prefix=Os -; RUN: opt < %s -Oz -S | FileCheck %s --check-prefix=Oz -; RUN: opt < %s -O1 -vectorize-loops -S | FileCheck %s --check-prefix=O1VEC -; RUN: opt < %s -Oz -vectorize-loops -S | FileCheck %s --check-prefix=OzVEC -; RUN: opt < %s -O1 -loop-vectorize -S | FileCheck %s --check-prefix=O1VEC2 -; RUN: opt < %s -Oz -loop-vectorize -S | FileCheck %s --check-prefix=OzVEC2 -; RUN: opt < %s -O3 -disable-loop-vectorization -S | FileCheck %s --check-prefix=O3DIS +; RUN: opt < %s -mcpu=corei7 -O1 -S | FileCheck %s --check-prefix=O1 +; RUN: opt < %s -mcpu=corei7 -O2 -S | FileCheck %s --check-prefix=O2 +; RUN: opt < %s -mcpu=corei7 -O3 -S | FileCheck %s --check-prefix=O3 +; RUN: opt < %s -mcpu=corei7 -Os -S | FileCheck %s --check-prefix=Os +; RUN: opt < %s -mcpu=corei7 -Oz -S | FileCheck %s --check-prefix=Oz +; RUN: opt < %s -mcpu=corei7 -O1 -vectorize-loops -S | FileCheck %s --check-prefix=O1VEC +; RUN: opt < %s -mcpu=corei7 -Oz -vectorize-loops -S | FileCheck %s --check-prefix=OzVEC +; RUN: opt < %s -mcpu=corei7 -O1 -loop-vectorize -S | FileCheck %s --check-prefix=O1VEC2 +; RUN: opt < %s -mcpu=corei7 -Oz -loop-vectorize -S | FileCheck %s --check-prefix=OzVEC2 +; RUN: opt < %s -mcpu=corei7 -O3 -disable-loop-vectorization -S | FileCheck %s --check-prefix=O3DIS ; This file tests the llvm.vectorizer.pragma forcing vectorization even when ; optimization levels are too low, or when vectorization is disabled. @@ -172,4 +172,4 @@ for.end: ; preds = %for.body !0 = metadata !{metadata !0, metadata !1} !1 = metadata !{metadata !"llvm.vectorizer.enable", i1 1} !2 = metadata !{metadata !2, metadata !3} -!3 = metadata !{metadata !"llvm.vectorizer.enable", i1 0}
\ No newline at end of file +!3 = metadata !{metadata !"llvm.vectorizer.enable", i1 0} |