[llvm-commits] CVS: llvm/test/CodeGen/ARM/lsr-scale-addr-mode.ll
Chris Lattner
sabre at nondot.org
Sun Apr 1 23:33:28 PDT 2007
Changes in directory llvm/test/CodeGen/ARM:
lsr-scale-addr-mode.ll added (r1.1)
---
Log message:
new testcase.
---
Diffs of the changes: (+19 -0)
lsr-scale-addr-mode.ll | 19 +++++++++++++++++++
1 files changed, 19 insertions(+)
Index: llvm/test/CodeGen/ARM/lsr-scale-addr-mode.ll
diff -c /dev/null llvm/test/CodeGen/ARM/lsr-scale-addr-mode.ll:1.1
*** /dev/null Mon Apr 2 01:33:20 2007
--- llvm/test/CodeGen/ARM/lsr-scale-addr-mode.ll Mon Apr 2 01:33:10 2007
***************
*** 0 ****
--- 1,19 ----
+ ; RUN: llvm-as < %s | llc -march=arm | grep -F 'str r2, [r0, +r3, lsl #2]'
+ ; Should use scaled addressing mode.
+
+ define void @sintzero(i32* %a) {
+ entry:
+ store i32 0, i32* %a
+ br label %cond_next
+
+ cond_next: ; preds = %cond_next, %entry
+ %indvar = phi i32 [ 0, %entry ], [ %tmp25, %cond_next ] ; <i32> [#uses=1]
+ %tmp25 = add i32 %indvar, 1 ; <i32> [#uses=3]
+ %tmp36 = getelementptr i32* %a, i32 %tmp25 ; <i32*> [#uses=1]
+ store i32 0, i32* %tmp36
+ icmp eq i32 %tmp25, -1 ; <i1>:0 [#uses=1]
+ br i1 %0, label %return, label %cond_next
+
+ return: ; preds = %cond_next
+ ret void
+ }
More information about the llvm-commits
mailing list