2014-04-03 16:01:44 +00:00
|
|
|
; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
|
2007-04-02 06:33:10 +00:00
|
|
|
; Should use scaled addressing mode.
|
|
|
|
|
2009-05-18 15:16:49 +00:00
|
|
|
define void @sintzero(i32* %a) nounwind {
|
2007-04-02 06:33:10 +00:00
|
|
|
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
|
|
|
|
}
|
2014-04-03 16:01:44 +00:00
|
|
|
|
|
|
|
; CHECK: lsl{{.*}}#2]
|
|
|
|
|