diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-10-30 18:12:36 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-10-30 18:12:36 +0000 |
commit | cc03331caaeee00b1238654feda8c5a517e48c3a (patch) | |
tree | f11ea6af622709a727156793d4b383e32537e839 /test/Transforms/LoopVectorize/reduction.ll | |
parent | c197a55019e9cf1a2403eaed5854d1091d63319c (diff) | |
download | llvm-cc03331caaeee00b1238654feda8c5a517e48c3a.tar.gz llvm-cc03331caaeee00b1238654feda8c5a517e48c3a.tar.bz2 llvm-cc03331caaeee00b1238654feda8c5a517e48c3a.tar.xz |
LoopVectorize: Fix a bug in the initialization of reduction variables. AND needs to start at all-one
while XOR, and OR need to start at zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopVectorize/reduction.ll')
-rw-r--r-- | test/Transforms/LoopVectorize/reduction.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Transforms/LoopVectorize/reduction.ll b/test/Transforms/LoopVectorize/reduction.ll index 746a08c3ea..d19f7c1b0b 100644 --- a/test/Transforms/LoopVectorize/reduction.ll +++ b/test/Transforms/LoopVectorize/reduction.ll @@ -151,6 +151,7 @@ for.end: ; preds = %for.body, %entry ;CHECK: @reduction_and ;CHECK: and <4 x i32> +;CHECK: <i32 -1, i32 -1, i32 -1, i32 -1> ;CHECK: ret i32 define i32 @reduction_and(i32 %n, i32* nocapture %A, i32* nocapture %B) nounwind uwtable readonly { entry: |