diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-11-08 21:08:02 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-11-08 21:08:02 +0000 |
commit | 7781ae5be570940178295f6f808215089a3fe411 (patch) | |
tree | fce0455fcad8f8ac3c0124f4a8c9c0f1c9cfae3e /test/Transforms/InstSimplify | |
parent | e1b3e11c15b705ad55c5ff2b04a0b790599013ea (diff) | |
download | external_llvm-7781ae5be570940178295f6f808215089a3fe411.zip external_llvm-7781ae5be570940178295f6f808215089a3fe411.tar.gz external_llvm-7781ae5be570940178295f6f808215089a3fe411.tar.bz2 |
Fix code to match comment. Fixes PR11340, a regression from r143209.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstSimplify')
-rw-r--r-- | test/Transforms/InstSimplify/compare.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/InstSimplify/compare.ll b/test/Transforms/InstSimplify/compare.ll index db5e72f..9f3dffe 100644 --- a/test/Transforms/InstSimplify/compare.ll +++ b/test/Transforms/InstSimplify/compare.ll @@ -342,6 +342,16 @@ define i1 @udiv5(i32 %X) { ; CHECK: ret i1 false } +; PR11340 +define i1 @udiv6(i32 %X) nounwind { +; CHECK: @udiv6 + %A = udiv i32 1, %X + %C = icmp eq i32 %A, 0 + ret i1 %C +; CHECK: ret i1 %C +} + + define i1 @sdiv1(i32 %X) { ; CHECK: @sdiv1 %A = sdiv i32 %X, 1000000 |