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

Chris Lattner lattner at cs.uiuc.edu
Wed Sep 28 11:04:33 PDT 2005



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

eqv-andc-orc-nor.ll added (r1.1)
eqv.ll (r1.2) removed
nor.ll (r1.1) removed
---
Log message:

Consolidate the eqv.ll and nor.ll files together.
Add a missed eqv case.


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

 eqv-andc-orc-nor.ll |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 58 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll:1.1
*** /dev/null	Wed Sep 28 13:04:32 2005
--- llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll	Wed Sep 28 13:04:22 2005
***************
*** 0 ****
--- 1,58 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l  | grep 3 &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep andc | wc -l | grep 2 &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep orc | wc -l  | grep 2 &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep nor | wc -l  | grep 2
+ 
+ int %EQV1(int %X, int %Y) {
+ 	%A = xor int %X, %Y
+ 	%B = xor int %A, -1
+ 	ret int %B
+ }
+ 
+ int %EQV2(int %X, int %Y) {
+ 	%A = xor int %X, -1
+ 	%B = xor int %A, %Y
+ 	ret int %B
+ }
+ 
+ int %EQV3(int %X, int %Y) {
+ 	%A = xor int %X, -1
+ 	%B = xor int %Y, %A
+ 	ret int %B
+ }
+ 
+ int %ANDC1(int %X, int %Y) {
+ 	%A = xor int %Y, -1
+ 	%B = and int %X, %A
+ 	ret int %B
+ }
+ 
+ int %ANDC2(int %X, int %Y) {
+ 	%A = xor int %X, -1
+ 	%B = and int %A, %Y
+ 	ret int %B
+ }
+ 
+ int %ORC1(int %X, int %Y) {
+ 	%A = xor int %Y, -1
+ 	%B = or  int %X, %A
+ 	ret int %B
+ }
+ 
+ int %ORC2(int %X, int %Y) {
+ 	%A = xor int %X, -1
+ 	%B = or  int %A, %Y
+ 	ret int %B
+ }
+ 
+ int %NOR1(int %X) {
+         %Y = xor int %X, -1
+         ret int %Y
+ }
+ 
+ int %NOR2(int %X, int %Y) {
+         %Z = or int %X, %Y
+         %R = xor int %Z, -1
+         ret int %R
+ }
+ 






More information about the llvm-commits mailing list