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

Chris Lattner lattner at cs.uiuc.edu
Thu Apr 21 14:10:23 PDT 2005



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

eqv.ll added (r1.1)
---
Log message:

Check for eqv matching


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

 eqv.ll |   13 +++++++++++++
 1 files changed, 13 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/eqv.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/eqv.ll:1.1
*** /dev/null	Thu Apr 21 16:10:17 2005
--- llvm/test/Regression/CodeGen/PowerPC/eqv.ll	Thu Apr 21 16:10:07 2005
***************
*** 0 ****
--- 1,13 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 2
+ 
+ int %test1(int %X, int %Y) {
+ 	%A = xor int %X, %Y
+ 	%B = xor int %A, -1
+ 	ret int %B
+ }
+ 
+ int %test2(int %X, int %Y) {
+ 	%A = xor int %X, %Y
+ 	%B = xor int %A, -1
+ 	ret int %B
+ }






More information about the llvm-commits mailing list