projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ConstantFold: div undef, 0 should fold to undef, not zero
[oota-llvm.git]
/
test
/
Transforms
/
InstSimplify
/
undef.ll
diff --git
a/test/Transforms/InstSimplify/undef.ll
b/test/Transforms/InstSimplify/undef.ll
index 3742d7450af620f6367ad36d23c6e10254762340..5787badfd14e1316a78fb03118b42fa96ac27b1d 100644
(file)
--- a/
test/Transforms/InstSimplify/undef.ll
+++ b/
test/Transforms/InstSimplify/undef.ll
@@
-188,3
+188,10
@@
define i32 @test23(i32 %a) {
%b = lshr exact i32 undef, %a
ret i32 %b
}
+
+; CHECK-LABEL: @test24
+; CHECK: ret i32 undef
+define i32 @test24(i32 %a) {
+ %b = udiv i32 undef, 0
+ ret i32 %b
+}