summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-25 04:28:43 +0000
committerChris Lattner <sabre@nondot.org>2004-05-25 04:28:43 +0000
commit2e13cea8964746fdbac8fb4a722d98927fb16cc4 (patch)
treebd05a86a822dfefda77142b28d2469b4fa3ceff9 /test
parent58ac674df49ac529376fefd5d6f1acb82c6687f9 (diff)
downloadllvm-2e13cea8964746fdbac8fb4a722d98927fb16cc4.tar.gz
llvm-2e13cea8964746fdbac8fb4a722d98927fb16cc4.tar.bz2
llvm-2e13cea8964746fdbac8fb4a722d98927fb16cc4.tar.xz
Add a new test16 and fix some other tests that were not properly written
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/cast.ll12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll
index 8b835c3372..a460661506 100644
--- a/test/Transforms/InstCombine/cast.ll
+++ b/test/Transforms/InstCombine/cast.ll
@@ -88,14 +88,18 @@ ubyte *%test13(long %A) {
}
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
+}