[llvm-commits] CVS: llvm/test/Regression/CodeGen/Alpha/i32_sub_1.ll

Andrew Lenharth alenhar2 at cs.uiuc.edu
Fri Jul 22 14:53:47 PDT 2005



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

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

make sure we always handle small negatives well

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

 i32_sub_1.ll |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/test/Regression/CodeGen/Alpha/i32_sub_1.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Alpha/i32_sub_1.ll:1.1
*** /dev/null	Fri Jul 22 16:53:45 2005
--- llvm/test/Regression/CodeGen/Alpha/i32_sub_1.ll	Fri Jul 22 16:53:35 2005
***************
*** 0 ****
--- 1,10 ----
+ ; Make sure this testcase codegens to the ctpop instruction
+ ; RUN: llvm-as < %s | llc -march=alpha | grep -i 'subl $16,1,$0'
+ 
+ implementation   ; Functions:
+ 
+ int %foo(int %x) {
+ entry:
+ 	%tmp.1 = add int %x, -1		; <int> [#uses=1]
+ 	ret int %tmp.1
+ }






More information about the llvm-commits mailing list