projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[InstSimplify] add nuw %x, C2 must be at least C2
[oota-llvm.git]
/
test
/
Transforms
/
InstSimplify
/
compare.ll
diff --git
a/test/Transforms/InstSimplify/compare.ll
b/test/Transforms/InstSimplify/compare.ll
index 07c90d8f1eb87feafb8e81e59f9760b4ca4c8b51..6e66fbfede9f4e333c7f3d4b207b6097ba34ff6f 100644
(file)
--- a/
test/Transforms/InstSimplify/compare.ll
+++ b/
test/Transforms/InstSimplify/compare.ll
@@
-1164,3
+1164,11
@@
define i1 @tautological8(i32 %A, i32 %B) {
; CHECK-LABEL: @tautological8(
; CHECK: ret i1 false
}
+
+define i1 @tautological9(i32 %x) {
+ %add = add nuw i32 %x, 13
+ %cmp = icmp ne i32 %add, 12
+ ret i1 %cmp
+; CHECK-LABEL: @tautological9(
+; CHECK: ret i1 true
+}