[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/cast-set.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 23 18:22:01 PDT 2003
Changes in directory llvm/test/Regression/Transforms/InstCombine:
cast-set.ll updated: 1.7 -> 1.8
---
Log message:
Add new tests, make existing tests more difficult
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/InstCombine/cast-set.ll
diff -u llvm/test/Regression/Transforms/InstCombine/cast-set.ll:1.7 llvm/test/Regression/Transforms/InstCombine/cast-set.ll:1.8
--- llvm/test/Regression/Transforms/InstCombine/cast-set.ll:1.7 Sat Jun 28 18:31:56 2003
+++ llvm/test/Regression/Transforms/InstCombine/cast-set.ll Wed Jul 23 18:21:08 2003
@@ -7,7 +7,7 @@
bool %test1(int %X) {
%A = cast int %X to uint
- %c = setne uint %A, 0 ; Convert to setne int %X, 0
+ %c = setne uint %A, 12 ; Convert to setne int %X, 12
ret bool %c
}
@@ -30,8 +30,15 @@
int %test4(int %A) {
%B = cast int %A to uint
- %C = shl uint %B, ubyte 1
+ %C = shl uint %B, ubyte 2
%D = cast uint %C to int
ret int %D
}
+short %test5(short %A) {
+ %B = cast short %A to uint
+ %C = and uint %B, 15
+ %D = cast uint %C to short
+ ret short %D
+}
+
More information about the llvm-commits
mailing list