source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/lsr-scale-addr-mode.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 597 bytes
Line 
1; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
2; Should use scaled addressing mode.
3
4define void @sintzero(i32* %a) nounwind {
5entry:
6        store i32 0, i32* %a
7        br label %cond_next
8
9cond_next:              ; preds = %cond_next, %entry
10        %indvar = phi i32 [ 0, %entry ], [ %tmp25, %cond_next ]         ; <i32> [#uses=1]
11        %tmp25 = add i32 %indvar, 1             ; <i32> [#uses=3]
12        %tmp36 = getelementptr i32, i32* %a, i32 %tmp25         ; <i32*> [#uses=1]
13        store i32 0, i32* %tmp36
14        icmp eq i32 %tmp25, -1          ; <i1>:0 [#uses=1]
15        br i1 %0, label %return, label %cond_next
16
17return:         ; preds = %cond_next
18        ret void
19}
20
21; CHECK: lsl{{.*}}#2]
22
Note: See TracBrowser for help on using the repository browser.