mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Moved first function to "simpleadd.ll".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@716 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5a28f062b9
commit
25e288fd92
@ -1,29 +1,5 @@
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
void "test function"(int %i0, int %j0)
|
|
||||||
%x = const int 1
|
|
||||||
begin
|
|
||||||
Startup: ; Basic block #0
|
|
||||||
%i1 = add int %i0, 1
|
|
||||||
%j1 = add int %j0, 1
|
|
||||||
%x = setle int %i1, %j1
|
|
||||||
br bool %x, label %Increment, label %Decrement
|
|
||||||
|
|
||||||
Merge: ; Basic block #3
|
|
||||||
%i4 = phi int [%i2, %Increment], [%i3,%Decrement] ; Forward ref vars...
|
|
||||||
%j2 = add int %j1, %i4
|
|
||||||
ret void
|
|
||||||
|
|
||||||
Increment: ; Basic block #1
|
|
||||||
%i2 = add int %i1, 1
|
|
||||||
br label %Merge
|
|
||||||
|
|
||||||
Decrement: ; Basic block #2
|
|
||||||
%i3 = sub int %i1, %x
|
|
||||||
br label %Merge
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
; Test "stripped" format where nothing is symbolic... this is how the bytecode
|
; Test "stripped" format where nothing is symbolic... this is how the bytecode
|
||||||
; format looks anyways (except for negative vs positive offsets)...
|
; format looks anyways (except for negative vs positive offsets)...
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user