aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll')
-rw-r--r--test/Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll b/test/Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll
new file mode 100644
index 0000000..e5238a5
--- /dev/null
+++ b/test/Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll
@@ -0,0 +1,10 @@
+; RUN: opt < %s -instcombine -S | grep {icmp ugt}
+; PR1107
+; PR1940
+
+define i1 @test(i8 %A, i8 %B) {
+ %a = zext i8 %A to i32
+ %b = zext i8 %B to i32
+ %c = icmp sgt i32 %a, %b
+ ret i1 %c
+}