mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Another testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13037 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3048bd1d3e
commit
df75125ff5
@ -87,3 +87,16 @@ Out:
|
||||
ret short %B1
|
||||
}
|
||||
|
||||
uint %linear_div_fold() { ;; for (i = 4; i != 68; i += 8) (exit with i/2)
|
||||
entry:
|
||||
br label %loop
|
||||
loop:
|
||||
%i = phi uint [ 4, %entry ], [ %i.next, %loop ]
|
||||
%i.next = add uint %i, 8
|
||||
%RV = div uint %i, 2
|
||||
%c = setne uint %i, 68
|
||||
br bool %c, label %loop, label %loopexit
|
||||
loopexit:
|
||||
ret uint %RV
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user