diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-06-17 02:57:36 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-06-17 02:57:36 +0000 |
commit | a999a511f782badfbfe98f1cdf7e92d4824f7a46 (patch) | |
tree | 5dfed37e58f5c1e478219374981edd9730493e02 /test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll | |
parent | 63dc3180859023e091cb2524a905034a74f51ffb (diff) | |
download | llvm-a999a511f782badfbfe98f1cdf7e92d4824f7a46.tar.gz llvm-a999a511f782badfbfe98f1cdf7e92d4824f7a46.tar.bz2 llvm-a999a511f782badfbfe98f1cdf7e92d4824f7a46.tar.xz |
PR3439: Correct a silly mistake in the SimplifyDemandedUseBits code for
SRem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll')
-rw-r--r-- | test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll b/test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll new file mode 100644 index 0000000000..230e245905 --- /dev/null +++ b/test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll @@ -0,0 +1,18 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep srem +; PR3439 + +define i32 @a(i32 %x) nounwind { +entry: + %rem = srem i32 %x, 2 + %and = and i32 %rem, 2 + ret i32 %and +} +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep srem +; PR3439 + +define i32 @a(i32 %x) nounwind { +entry: + %rem = srem i32 %x, 2 + %and = and i32 %rem, 2 + ret i32 %and +} |