[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/cast.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon May 24 23:31:01 PDT 2004
Changes in directory llvm/test/Regression/Transforms/InstCombine:
cast.ll updated: 1.19 -> 1.20
---
Log message:
Add a new test16 and fix some other tests that were not properly written
---
Diffs of the changes: (+8 -4)
Index: llvm/test/Regression/Transforms/InstCombine/cast.ll
diff -u llvm/test/Regression/Transforms/InstCombine/cast.ll:1.19 llvm/test/Regression/Transforms/InstCombine/cast.ll:1.20
--- llvm/test/Regression/Transforms/InstCombine/cast.ll:1.19 Fri Feb 27 23:26:06 2004
+++ llvm/test/Regression/Transforms/InstCombine/cast.ll Mon May 24 23:28:43 2004
@@ -88,14 +88,18 @@
}
bool %test14(sbyte %A) {
- %B = cast sbyte %A to ubyte
- %X = setlt ubyte %B, 128 ; setge %A, 0
+ %c = cast sbyte %A to ubyte
+ %X = setlt ubyte %c, 128 ; setge %A, 0
ret bool %X
}
bool %test15(ubyte %A) {
- %B = cast ubyte %A to sbyte
- %X = setlt sbyte %B, 0 ; setgt %A, 127
+ %c = cast ubyte %A to sbyte
+ %X = setlt sbyte %c, 0 ; setgt %A, 127
ret bool %X
}
+bool %test16(int* %P) {
+ %c = cast int* %P to bool ;; setne P, null
+ ret bool %c
+}
More information about the llvm-commits
mailing list