summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/set.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/set.ll')
-rw-r--r--test/Transforms/InstCombine/set.ll10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/Transforms/InstCombine/set.ll b/test/Transforms/InstCombine/set.ll
index 264bb353c3..3fd94c31a4 100644
--- a/test/Transforms/InstCombine/set.ll
+++ b/test/Transforms/InstCombine/set.ll
@@ -6,16 +6,20 @@
; RUN: else exit 0
; RUN: fi
-implementation
+%X = uninitialized global int
bool "test1"(int %A) {
%B = seteq int %A, %A
- ret bool %B
+ %C = seteq int* %X, null ; Never true
+ %D = and bool %B, %C
+ ret bool %D
}
bool "test2"(int %A) {
%B = setne int %A, %A
- ret bool %B
+ %C = setne int* %X, null ; Never false
+ %D = or bool %B, %C
+ ret bool %D
}
bool "test3"(int %A) {