summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/mul.ll
diff options
context:
space:
mode:
authorPaul Redmond <paul.redmond@intel.com>2013-01-21 21:57:20 +0000
committerPaul Redmond <paul.redmond@intel.com>2013-01-21 21:57:20 +0000
commit8e528100d210e225cee417229d94af91355118c0 (patch)
treefb79d27bfbcb7feb41de5ed4d92fff0c40a04226 /test/Transforms/InstCombine/mul.ll
parente4b1efef8aa51c7ac768f96e77af49622d9e85b9 (diff)
downloadllvm-8e528100d210e225cee417229d94af91355118c0.tar.gz
llvm-8e528100d210e225cee417229d94af91355118c0.tar.bz2
llvm-8e528100d210e225cee417229d94af91355118c0.tar.xz
Transform (sub 0, (zext bool to A)) to (sext bool to A) and
(sub 0, (sext bool to A)) to (zext bool to A). Patch by Muhammad Ahmad Reviewed by Duncan Sands git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/mul.ll')
-rw-r--r--test/Transforms/InstCombine/mul.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Transforms/InstCombine/mul.ll b/test/Transforms/InstCombine/mul.ll
index bbc70fe333..34ce088e29 100644
--- a/test/Transforms/InstCombine/mul.ll
+++ b/test/Transforms/InstCombine/mul.ll
@@ -138,8 +138,7 @@ define i32 @test16(i32 %b, i1 %c) {
; e = b & (a >> 31)
%e = mul i32 %d, %b ; <i32> [#uses=1]
ret i32 %e
-; CHECK: [[TEST16:%.*]] = zext i1 %c to i32
-; CHECK-NEXT: %1 = sub i32 0, [[TEST16]]
+; CHECK: [[TEST16:%.*]] = sext i1 %c to i32
; CHECK-NEXT: %e = and i32 %1, %b
; CHECK-NEXT: ret i32 %e
}