mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 02:32:08 +00:00
4e1a0e386c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44177 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
613 B
LLVM
26 lines
613 B
LLVM
; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep printd | grep 1206807378
|
|
; PR1798
|
|
; XFAIL: *
|
|
|
|
declare void @printd(i32)
|
|
|
|
define i32 @test() {
|
|
entry:
|
|
br label %bb6
|
|
|
|
bb: ; preds = %bb6
|
|
%tmp3 = add i32 %x.0, %i.0 ; <i32> [#uses=1]
|
|
%tmp5 = add i32 %i.0, 1 ; <i32> [#uses=1]
|
|
br label %bb6
|
|
|
|
bb6: ; preds = %bb, %entry
|
|
%i.0 = phi i32 [ 0, %entry ], [ %tmp5, %bb ] ; <i32> [#uses=3]
|
|
%x.0 = phi i32 [ 0, %entry ], [ %tmp3, %bb ] ; <i32> [#uses=3]
|
|
%tmp8 = icmp slt i32 %i.0, 123456789 ; <i1> [#uses=1]
|
|
br i1 %tmp8, label %bb, label %bb10
|
|
|
|
bb10: ; preds = %bb6
|
|
call void @printd(i32 %x.0)
|
|
ret i32 0
|
|
}
|