[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/select.ll

Chris Lattner lattner at cs.uiuc.edu
Fri Mar 12 00:02:01 PST 2004


Changes in directory llvm/test/Regression/Transforms/InstCombine:

select.ll added (r1.1)

---
Log message:

test instruction combiner opts for select instruction


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

Index: llvm/test/Regression/Transforms/InstCombine/select.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/select.ll:1.1
*** /dev/null	Fri Mar 12 00:01:10 2004
--- llvm/test/Regression/Transforms/InstCombine/select.ll	Fri Mar 12 00:01:00 2004
***************
*** 0 ****
--- 1,18 ----
+ ; This test makes sure that these instructions are properly eliminated.
+ ;
+ 
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep select
+ 
+ implementation
+ 
+ int %test1(int %A, int %B) {
+ 	%C = select bool false, int %A, int %B
+ 	ret int %C
+ }
+ 
+ int %test2(int %A, int %B) {
+ 	%C = select bool true, int %A, int %B
+ 	ret int %C
+ }
+ 
+ 





More information about the llvm-commits mailing list