[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/select.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 30 15:22:01 PST 2004
Changes in directory llvm/test/Regression/CodeGen/X86:
select.ll added (r1.1)
---
Log message:
New testcase for select instructions
---
Diffs of the changes: (+32 -0)
Index: llvm/test/Regression/CodeGen/X86/select.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/select.ll:1.1
*** /dev/null Tue Mar 30 15:21:24 2004
--- llvm/test/Regression/CodeGen/X86/select.ll Tue Mar 30 15:21:14 2004
***************
*** 0 ****
--- 1,32 ----
+ ; RUN: llvm-as < %s | llc -march=x86
+
+ bool %boolSel(bool %A, bool %B, bool %C) {
+ %X = select bool %A, bool %B, bool %C
+ ret bool %X
+ }
+
+ sbyte %byteSel(bool %A, sbyte %B, sbyte %C) {
+ %X = select bool %A, sbyte %B, sbyte %C
+ ret sbyte %X
+ }
+
+ short %shortSel(bool %A, short %B, short %C) {
+ %X = select bool %A, short %B, short %C
+ ret short %X
+ }
+
+ int %intSel(bool %A, int %B, int %C) {
+ %X = select bool %A, int %B, int %C
+ ret int %X
+ }
+
+ long %longSel(bool %A, long %B, long %C) {
+ %X = select bool %A, long %B, long %C
+ ret long %X
+ }
+
+ double %doubleSel(bool %A, double %B, double %C) {
+ %X = select bool %A, double %B, double %C
+ ret double %X
+ }
+
More information about the llvm-commits
mailing list