aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/InstCombine/exact.ll (renamed from test/Transforms/InstCombine/exact-sdiv.ll)8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/exact-sdiv.ll b/test/Transforms/InstCombine/exact.ll
index e5677541e9..940469ea71 100644
--- a/test/Transforms/InstCombine/exact-sdiv.ll
+++ b/test/Transforms/InstCombine/exact.ll
@@ -50,3 +50,11 @@ define i32 @b1(i32 %x) {
%z = mul i32 %y, -3
ret i32 %z
}
+
+; CHECK: i32 @b2
+; CHECK: ret i32 %x
+define i32 @b2(i32 %x, i32 %w) {
+ %y = udiv exact i32 %x, %w
+ %z = mul i32 %y, %w
+ ret i32 %z
+}