diff options
Diffstat (limited to 'llvm/test/Transforms/InstCombine/icmp-shr.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/icmp-shr.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/icmp-shr.ll b/llvm/test/Transforms/InstCombine/icmp-shr.ll index 8e7c906a545..7562f24a35d 100644 --- a/llvm/test/Transforms/InstCombine/icmp-shr.ll +++ b/llvm/test/Transforms/InstCombine/icmp-shr.ll @@ -688,3 +688,11 @@ define i1 @PR20945(i32 %B) { %cmp = icmp ne i32 %shr, -5 ret i1 %cmp } + +; CHECK-LABEL: @PR21222 +; CHECK: icmp eq i32 %B, 6 +define i1 @PR21222(i32 %B) { + %shr = ashr i32 -93, %B + %cmp = icmp eq i32 %shr, -2 + ret i1 %cmp +} |