diff options
| author | Hal Finkel <hfinkel@anl.gov> | 2012-06-24 13:28:01 +0000 |
|---|---|---|
| committer | Hal Finkel <hfinkel@anl.gov> | 2012-06-24 13:28:01 +0000 |
| commit | 3099ce94892a477b988616800fe703f76e1d4461 (patch) | |
| tree | be281d1a1cacf6ef4eae3ac7b96ab0d5eed7fe15 /llvm/test | |
| parent | 0a045bbe4e32e558da7561393f39cb907c0a4530 (diff) | |
| download | bcm5719-llvm-3099ce94892a477b988616800fe703f76e1d4461.tar.gz bcm5719-llvm-3099ce94892a477b988616800fe703f76e1d4461.zip | |
Allow controlling vectorization of boolean values separately from other integer types.
These are used as the result of comparisons, and often handled differently from larger integer types.
llvm-svn: 159111
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Transforms/BBVectorize/simple-sel.ll | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/Transforms/BBVectorize/simple-sel.ll b/llvm/test/Transforms/BBVectorize/simple-sel.ll index 7fb9c8b74c0..325792a5dca 100644 --- a/llvm/test/Transforms/BBVectorize/simple-sel.ll +++ b/llvm/test/Transforms/BBVectorize/simple-sel.ll @@ -1,5 +1,6 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" ; RUN: opt < %s -bb-vectorize -bb-vectorize-req-chain-depth=3 -instcombine -gvn -S | FileCheck %s +; RUN: opt < %s -bb-vectorize -bb-vectorize-req-chain-depth=3 -bb-vectorize-no-bools -instcombine -gvn -S | FileCheck %s -check-prefix=CHECK-NB ; Basic depth-3 chain with select define double @test1(double %A1, double %A2, double %B1, double %B2, i1 %C1, i1 %C2) { @@ -30,6 +31,7 @@ define double @test1(double %A1, double %A2, double %B1, double %B2, i1 %C1, i1 ; Basic depth-3 chain with select (and vect. compare) define double @test2(double %A1, double %A2, double %B1, double %B2) { ; CHECK: @test2 +; CHECK-NB: @test2 ; CHECK: %X1.v.i1.1 = insertelement <2 x double> undef, double %B1, i32 0 ; CHECK: %X1.v.i0.1 = insertelement <2 x double> undef, double %A1, i32 0 ; CHECK: %X1.v.i1.2 = insertelement <2 x double> %X1.v.i1.1, double %B2, i32 1 @@ -43,6 +45,7 @@ define double @test2(double %A1, double %A2, double %B1, double %B2) { %C1 = fcmp ogt double %X1, %A1 %C2 = fcmp ogt double %X2, %A2 ; CHECK: %C1 = fcmp ogt <2 x double> %X1, %X1.v.i0.2 +; CHECK-NB: fcmp ogt double %Z1 = select i1 %C1, double %Y1, double %B1 %Z2 = select i1 %C2, double %Y2, double %B2 ; CHECK: %Z1 = select <2 x i1> %C1, <2 x double> %Y1, <2 x double> %X1.v.i1.2 |

