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

Chris Lattner lattner at cs.uiuc.edu
Wed Sep 28 10:55:21 PDT 2005



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

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

simple tests for nor generation


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

 nor.ll |   12 ++++++++++++
 1 files changed, 12 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/nor.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/nor.ll:1.1
*** /dev/null	Wed Sep 28 12:55:20 2005
--- llvm/test/Regression/CodeGen/PowerPC/nor.ll	Wed Sep 28 12:55:10 2005
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep nor | wc -l | grep 2
+ 
+ int %test1(int %X) {
+ 	%Y = xor int %X, -1
+ 	ret int %Y
+ }
+ 
+ int %test2(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