aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2008-11-27-UDivNegative.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/2008-11-27-UDivNegative.ll')
-rw-r--r--test/Transforms/InstCombine/2008-11-27-UDivNegative.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2008-11-27-UDivNegative.ll b/test/Transforms/InstCombine/2008-11-27-UDivNegative.ll
new file mode 100644
index 0000000..fc90bba
--- /dev/null
+++ b/test/Transforms/InstCombine/2008-11-27-UDivNegative.ll
@@ -0,0 +1,6 @@
+; RUN: opt < %s -instcombine -S | not grep div
+
+define i8 @test(i8 %x) readnone nounwind {
+ %A = udiv i8 %x, 250
+ ret i8 %A
+}