[llvm-commits] CVS: llvm/test/Regression/CodeGen/Alpha/bic.ll eqv.ll neg1.ll not.ll ornot.ll

Andrew Lenharth alenhar2 at cs.uiuc.edu
Fri Apr 8 09:47:01 PDT 2005



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

bic.ll added (r1.1)
eqv.ll added (r1.1)
neg1.ll added (r1.1)
not.ll added (r1.1)
ornot.ll added (r1.1)
---
Log message:

added some tests to check stupid pattern matching mistakes

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

 bic.ll   |   11 +++++++++++
 eqv.ll   |   11 +++++++++++
 neg1.ll  |    9 +++++++++
 not.ll   |   10 ++++++++++
 ornot.ll |   11 +++++++++++
 5 files changed, 52 insertions(+)


Index: llvm/test/Regression/CodeGen/Alpha/bic.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Alpha/bic.ll:1.1
*** /dev/null	Fri Apr  8 11:46:54 2005
--- llvm/test/Regression/CodeGen/Alpha/bic.ll	Fri Apr  8 11:46:44 2005
***************
*** 0 ****
--- 1,11 ----
+ ; Make sure this testcase codegens to the bic instruction
+ ; RUN: llvm-as < %s | llc -march=alpha | grep 'bic'
+ 
+ implementation   ; Functions:
+ 
+ long %bar(long %x, long %y) {
+ entry:
+ 	%tmp.1 = xor long %x, -1  		; <long> [#uses=1]
+         %tmp.2 = and long %y, long %tmp.1
+ 	ret long %tmp.2
+ }


Index: llvm/test/Regression/CodeGen/Alpha/eqv.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Alpha/eqv.ll:1.1
*** /dev/null	Fri Apr  8 11:47:00 2005
--- llvm/test/Regression/CodeGen/Alpha/eqv.ll	Fri Apr  8 11:46:44 2005
***************
*** 0 ****
--- 1,11 ----
+ ; Make sure this testcase codegens to the eqv instruction
+ ; RUN: llvm-as < %s | llc -march=alpha | grep 'eqv'
+ 
+ implementation   ; Functions:
+ 
+ long %bar(long %x, long %y) {
+ entry:
+ 	%tmp.1 = xor long %x, -1  		; <long> [#uses=1]
+         %tmp.2 = xor long %y, long %tmp.1
+ 	ret long %tmp.2
+ }


Index: llvm/test/Regression/CodeGen/Alpha/neg1.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Alpha/neg1.ll:1.1
*** /dev/null	Fri Apr  8 11:47:00 2005
--- llvm/test/Regression/CodeGen/Alpha/neg1.ll	Fri Apr  8 11:46:44 2005
***************
*** 0 ****
--- 1,9 ----
+ ; Make sure this testcase codegens to the lda -1 instruction
+ ; RUN: llvm-as < %s | llc -march=alpha | grep '-1'
+ 
+ implementation   ; Functions:
+ 
+ long %bar() {
+ entry:
+ 	ret long -1
+ }


Index: llvm/test/Regression/CodeGen/Alpha/not.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Alpha/not.ll:1.1
*** /dev/null	Fri Apr  8 11:47:01 2005
--- llvm/test/Regression/CodeGen/Alpha/not.ll	Fri Apr  8 11:46:44 2005
***************
*** 0 ****
--- 1,10 ----
+ ; Make sure this testcase codegens to the ornot instruction
+ ; RUN: llvm-as < %s | llc -march=alpha | grep 'ornot'
+ 
+ implementation   ; Functions:
+ 
+ long %bar(long %x) {
+ entry:
+ 	%tmp.1 = xor long %x, -1  		; <long> [#uses=1]
+ 	ret long %tmp.1
+ }


Index: llvm/test/Regression/CodeGen/Alpha/ornot.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Alpha/ornot.ll:1.1
*** /dev/null	Fri Apr  8 11:47:01 2005
--- llvm/test/Regression/CodeGen/Alpha/ornot.ll	Fri Apr  8 11:46:44 2005
***************
*** 0 ****
--- 1,11 ----
+ ; Make sure this testcase codegens to the ornot instruction
+ ; RUN: llvm-as < %s | llc -march=alpha | grep 'ornot'
+ 
+ implementation   ; Functions:
+ 
+ long %bar(long %x, long %y) {
+ entry:
+ 	%tmp.1 = xor long %x, -1  		; <long> [#uses=1]
+         %tmp.2 = or long %y, long %tmp.1
+ 	ret long %tmp.2
+ }






More information about the llvm-commits mailing list