[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/select_lt0.ll setcc_no_zext.ll

Nate Begeman natebegeman at mac.com
Wed Apr 13 14:45:24 PDT 2005



Changes in directory llvm/test/Regression/CodeGen/PowerPC:

select_lt0.ll added (r1.1)
setcc_no_zext.ll added (r1.1)
---
Log message:

Add CodeGen tests for the recent SelectionDAG transforms


---
Diffs of the changes:  (+53 -0)

 select_lt0.ll    |   45 +++++++++++++++++++++++++++++++++++++++++++++
 setcc_no_zext.ll |    8 ++++++++
 2 files changed, 53 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/select_lt0.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/select_lt0.ll:1.1
*** /dev/null	Wed Apr 13 16:45:23 2005
--- llvm/test/Regression/CodeGen/PowerPC/select_lt0.ll	Wed Apr 13 16:45:13 2005
***************
*** 0 ****
--- 1,45 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 -enable-ppc-pattern-isel | not grep cmp
+ 
+ int %seli32_1(int %a) {
+ entry:
+ 	%tmp.1 = setlt int %a, 0
+ 	%retval = select bool %tmp.1, int 5, int 0
+ 	ret int %retval
+ }
+ 
+ int %seli32_2(int %a, int %b) {
+ entry:
+ 	%tmp.1 = setlt int %a, 0
+ 	%retval = select bool %tmp.1, int %b, int 0
+ 	ret int %retval
+ }
+ 
+ int %seli32_3(int %a, short %b) {
+ entry:
+ 	%tmp.2 = cast short %b to int
+ 	%tmp.1 = setlt int %a, 0
+ 	%retval = select bool %tmp.1, int %tmp.2, int 0
+ 	ret int %retval
+ }
+ 
+ int %seli32_4(int %a, ushort %b) {
+ entry:
+ 	%tmp.2 = cast ushort %b to int
+ 	%tmp.1 = setlt int %a, 0
+ 	%retval = select bool %tmp.1, int %tmp.2, int 0
+ 	ret int %retval
+ }
+ 
+ short %seli16_1(short %a) {
+ entry:
+ 	%tmp.1 = setlt short %a, 0
+ 	%retval = select bool %tmp.1, short 7, short 0
+ 	ret short %retval
+ }
+ 
+ short %seli16_2(int %a, short %b) {
+ entry:
+ 	%tmp.1 = setlt int %a, 0
+ 	%retval = select bool %tmp.1, short %b, short 0
+ 	ret short %retval
+ }


Index: llvm/test/Regression/CodeGen/PowerPC/setcc_no_zext.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/setcc_no_zext.ll:1.1
*** /dev/null	Wed Apr 13 16:45:24 2005
--- llvm/test/Regression/CodeGen/PowerPC/setcc_no_zext.ll	Wed Apr 13 16:45:13 2005
***************
*** 0 ****
--- 1,8 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 -enable-ppc-pattern-isel | not grep rlwinm
+ 
+ int %setcc_one_or_zero(int* %a) {
+ entry:
+ 	%tmp.1 = setne int* %a, null
+ 	%inc.1 = cast bool %tmp.1 to int
+ 	ret int %inc.1
+ }






More information about the llvm-commits mailing list