[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/select.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 9 03:05:01 PDT 2004
Changes in directory llvm/test/Regression/Transforms/InstCombine:
select.ll updated: 1.7 -> 1.8
---
Log message:
More instcombine testcases
---
Diffs of the changes: (+27 -0)
Index: llvm/test/Regression/Transforms/InstCombine/select.ll
diff -u llvm/test/Regression/Transforms/InstCombine/select.ll:1.7 llvm/test/Regression/Transforms/InstCombine/select.ll:1.8
--- llvm/test/Regression/Transforms/InstCombine/select.ll:1.7 Tue Jun 8 23:23:57 2004
+++ llvm/test/Regression/Transforms/InstCombine/select.ll Wed Jun 9 02:59:40 2004
@@ -109,3 +109,30 @@
ret bool %R
}
+int %test15a(int %X) { ;; Code sequence for (X & 16) ? 16 : 0
+ %t1 = and int %X, 16
+ %t2 = seteq int %t1, 0
+ %t3 = select bool %t2, int 0, int 16 ;; X & 16
+ ret int %t3
+}
+
+int %test15b(int %X) { ;; Code sequence for (X & 32) ? 0 : 24
+ %t1 = and int %X, 32
+ %t2 = seteq int %t1, 0
+ %t3 = select bool %t2, int 32, int 0 ;; ~X & 32
+ ret int %t3
+}
+
+int %test15c(int %X) { ;; Alternate code sequence for (X & 16) ? 16 : 0
+ %t1 = and int %X, 16
+ %t2 = seteq int %t1, 16
+ %t3 = select bool %t2, int 16, int 0 ;; X & 16
+ ret int %t3
+}
+
+int %test15d(int %X) { ;; Alternate code sequence for (X & 16) ? 16 : 0
+ %t1 = and int %X, 16
+ %t2 = setne int %t1, 0
+ %t3 = select bool %t2, int 16, int 0 ;; X & 16
+ ret int %t3
+}
More information about the llvm-commits
mailing list