mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
fce288fc91
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81293 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
575 B
LLVM
20 lines
575 B
LLVM
; RUN: llc < %s -march=arm | grep lsl | grep -F {lsl #2\]}
|
|
; Should use scaled addressing mode.
|
|
|
|
define void @sintzero(i32* %a) nounwind {
|
|
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
|
|
}
|