[llvm-commits] CVS: llvm/test/Regression/CodeGen/ARM/addSubConstant.ll

Rafael Espindola rafael.espindola at gmail.com
Thu Dec 14 05:31:44 PST 2006



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

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

Avoid creating invalid sub/add instructions on the prolog/epilog
patch by Lauro


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

 addSubConstant.ll |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+)


Index: llvm/test/Regression/CodeGen/ARM/addSubConstant.ll
diff -c /dev/null llvm/test/Regression/CodeGen/ARM/addSubConstant.ll:1.1
*** /dev/null	Thu Dec 14 07:31:37 2006
--- llvm/test/Regression/CodeGen/ARM/addSubConstant.ll	Thu Dec 14 07:31:27 2006
***************
*** 0 ****
--- 1,19 ----
+ ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
+ ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | not grep "805306384"
+ 
+ 
+ int %main() {
+ entry:
+ 	%retval = alloca int, align 4		; <int*> [#uses=2]
+ 	%tmp = alloca int, align 4		; <int*> [#uses=2]
+ 	%a = alloca [805306369 x sbyte], align 16		; <[805306369 x sbyte]*> [#uses=0]
+ 	"alloca point" = bitcast int 0 to int		; <int> [#uses=0]
+ 	store int 0, int* %tmp
+ 	%tmp = load int* %tmp		; <int> [#uses=1]
+ 	store int %tmp, int* %retval
+ 	br label %return
+ 
+ return:		; preds = %entry
+ 	%retval = load int* %retval		; <int> [#uses=1]
+ 	ret int %retval
+ }






More information about the llvm-commits mailing list