diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-23 05:59:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-23 05:59:52 +0000 |
commit | f4821745dfb23899d250bb9010582750e5cee31a (patch) | |
tree | 10768c362260fa325c9f7d16788112d33c41d9a0 | |
parent | 45aaafef49d02ee3df68ee88ad5b680d68a5b961 (diff) | |
download | external_llvm-f4821745dfb23899d250bb9010582750e5cee31a.zip external_llvm-f4821745dfb23899d250bb9010582750e5cee31a.tar.gz external_llvm-f4821745dfb23899d250bb9010582750e5cee31a.tar.bz2 |
Add a slight variant of test10
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11736 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/mul.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/mul.ll b/test/Transforms/InstCombine/mul.ll index 34a4572..e684d31 100644 --- a/test/Transforms/InstCombine/mul.ll +++ b/test/Transforms/InstCombine/mul.ll @@ -58,3 +58,10 @@ uint %test10(int %a, uint %b) { ret uint %e } +uint %test11(int %a, uint %b) { + %c = setle int %a, -1 + %d = cast bool %c to uint + %e = mul uint %d, %b ; e = b & (a >> 31) + ret uint %e +} + |