source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Analysis/ScalarEvolution/2007-11-14-SignedAddRec.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: 600 bytes
Line 
1; RUN: opt < %s -indvars -S | FileCheck %s
2; PR1798
3
4; CHECK: printd(i32 1206807378)
5
6declare void @printd(i32)
7
8define i32 @test() {
9entry:
10        br label %bb6
11
12bb:             ; preds = %bb6
13        %tmp3 = add i32 %x.0, %i.0              ; <i32> [#uses=1]
14        %tmp5 = add i32 %i.0, 1         ; <i32> [#uses=1]
15        br label %bb6
16
17bb6:            ; preds = %bb, %entry
18        %i.0 = phi i32 [ 0, %entry ], [ %tmp5, %bb ]            ; <i32> [#uses=3]
19        %x.0 = phi i32 [ 0, %entry ], [ %tmp3, %bb ]            ; <i32> [#uses=3]
20        %tmp8 = icmp slt i32 %i.0, 123456789            ; <i1> [#uses=1]
21        br i1 %tmp8, label %bb, label %bb10
22
23bb10:           ; preds = %bb6
24        call void @printd(i32 %x.0)
25        ret i32 0
26}
Note: See TracBrowser for help on using the repository browser.