mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-10 22:55:57 +00:00
Patch by Jakub Staszak! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102928 91177308-0d34-0410-b5e6-96231b3b80d8
39 lines
826 B
LLVM
39 lines
826 B
LLVM
; RUN: llvm-as < %s | opt -loop-index-split | llvm-dis | not grep clone
|
|
|
|
declare void @f()
|
|
|
|
define fastcc i32 @main() nounwind {
|
|
entry:
|
|
br label %bb1552
|
|
|
|
bb1552:
|
|
%j295.0.reg2mem.0 = phi i32 [ %storemerge110, %bb1669 ], [ 0, %entry ]
|
|
br label %bb1553
|
|
|
|
bb1553:
|
|
call void @f()
|
|
%tmp1628 = icmp sgt i32 %j295.0.reg2mem.0, -3
|
|
br i1 %tmp1628, label %bb1588, label %bb1616
|
|
|
|
bb1588:
|
|
br label %bb1616
|
|
|
|
bb1616:
|
|
%tmp1629 = icmp sgt i32 %j295.0.reg2mem.0, -3
|
|
br i1 %tmp1629, label %bb1649, label %bb1632
|
|
|
|
bb1632:
|
|
br label %bb1669
|
|
|
|
bb1649:
|
|
br label %bb1669
|
|
|
|
bb1669:
|
|
%storemerge110 = add i32 %j295.0.reg2mem.0, 1
|
|
%tmp1672 = icmp sgt i32 %storemerge110, 3
|
|
br i1 %tmp1672, label %bb1678, label %bb1552
|
|
|
|
bb1678:
|
|
ret i32 0
|
|
}
|