aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/cast.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll
index 2ef6240a75..829d127ff0 100644
--- a/test/Transforms/InstCombine/cast.ll
+++ b/test/Transforms/InstCombine/cast.ll
@@ -81,3 +81,9 @@ bool %test12(ubyte %A) {
ret bool %C
}
+bool %test13(ubyte %A, ubyte %b) {
+ %B = add ubyte %A, %b
+ %C = cast ubyte %B to bool ; === A != 1
+ ret bool %C
+}
+