[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/and.ll mul.ll or.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 10 16:45:01 PST 2003
Changes in directory llvm/test/Regression/Transforms/InstCombine:
and.ll updated: 1.5 -> 1.6
mul.ll updated: 1.4 -> 1.5
or.ll updated: 1.9 -> 1.10
---
Log message:
* Add testcases for associative operators
* Add testcase for or ubyte, 255 which was broken before
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/InstCombine/and.ll
diff -u llvm/test/Regression/Transforms/InstCombine/and.ll:1.5 llvm/test/Regression/Transforms/InstCombine/and.ll:1.6
--- llvm/test/Regression/Transforms/InstCombine/and.ll:1.5 Tue Feb 18 13:28:47 2003
+++ llvm/test/Regression/Transforms/InstCombine/and.ll Mon Mar 10 16:43:56 2003
@@ -42,4 +42,10 @@
%NotA = xor int %A, -1
%B = and int %A, %NotA
ret int %B
-}
\ No newline at end of file
+}
+
+ubyte %test8(ubyte %A) { ; AND associates
+ %B = and ubyte %A, 3
+ %C = and ubyte %B, 4
+ ret ubyte %C
+}
Index: llvm/test/Regression/Transforms/InstCombine/mul.ll
diff -u llvm/test/Regression/Transforms/InstCombine/mul.ll:1.4 llvm/test/Regression/Transforms/InstCombine/mul.ll:1.5
--- llvm/test/Regression/Transforms/InstCombine/mul.ll:1.4 Mon Mar 10 13:44:01 2003
+++ llvm/test/Regression/Transforms/InstCombine/mul.ll Mon Mar 10 16:43:56 2003
@@ -32,3 +32,9 @@
%B = mul int %A, 8
ret int %B
}
+
+int %test6(ubyte %A) {
+ %B = mul ubyte %A, 8
+ %C = mul ubyte %B, 13
+ ret ubyte %C
+}
Index: llvm/test/Regression/Transforms/InstCombine/or.ll
diff -u llvm/test/Regression/Transforms/InstCombine/or.ll:1.9 llvm/test/Regression/Transforms/InstCombine/or.ll:1.10
--- llvm/test/Regression/Transforms/InstCombine/or.ll:1.9 Mon Mar 10 12:24:04 2003
+++ llvm/test/Regression/Transforms/InstCombine/or.ll Mon Mar 10 16:43:56 2003
@@ -18,6 +18,11 @@
ret int %B
}
+ubyte %test2a(ubyte %A) {
+ %B = or ubyte %A, 255
+ ret ubyte %B
+}
+
bool %test3(bool %A) {
%B = or bool %A, false
ret bool %B
@@ -74,4 +79,15 @@
%t1 = or uint %A, 123
%r = xor uint %t1, 123
ret uint %r
+}
+
+ubyte %test14(ubyte %A) {
+ %B = or ubyte %A, 254
+ %C = or ubyte %B, 1
+ ret ubyte %C
+}
+ubyte %test15(ubyte %A) {
+ %B = xor ubyte %A, 17
+ %C = xor ubyte %B, 17
+ ret ubyte %C
}
More information about the llvm-commits
mailing list