summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/cast.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/cast.ll')
-rw-r--r--test/Transforms/InstCombine/cast.ll17
1 files changed, 11 insertions, 6 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll
index a19a2f1f2e..3b5b14be99 100644
--- a/test/Transforms/InstCombine/cast.ll
+++ b/test/Transforms/InstCombine/cast.ll
@@ -68,19 +68,24 @@ short %test10(short %A) {
bool %test11(ubyte %A, ubyte %B) {
%C = sub ubyte %A, %B
- %D = cast ubyte %C to bool ; == setne A, B
- ret bool %D
+ %cD = cast ubyte %C to bool ; == setne A, B
+ ret bool %cD
}
bool %test12(ubyte %A) {
%B = add ubyte %A, 255
- %C = cast ubyte %B to bool ; === A != 1
- ret bool %C
+ %c = cast ubyte %B to bool ; === A != 1
+ ret bool %c
}
bool %test13(ubyte %A, ubyte %b) {
%B = add ubyte %A, %b
- %C = cast ubyte %B to bool ; === A != -b
- ret bool %C
+ %c = cast ubyte %B to bool ; === A != -b
+ ret bool %c
}
+bool %test14(ubyte %A) {
+ %B = xor ubyte %A, 4
+ %c = cast ubyte %B to bool
+ ret bool %c
+}