mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-07 12:35:41 +00:00
14 lines
225 B
LLVM
14 lines
225 B
LLVM
|
; RUN: as < %s | opt -tailduplicate -disable-output
|
||
|
|
||
|
implementation
|
||
|
|
||
|
int %sum() {
|
||
|
entry:
|
||
|
br label %loopentry
|
||
|
|
||
|
loopentry:
|
||
|
%i.0 = phi int [ 1, %entry ], [ %tmp.3, %loopentry ]
|
||
|
%tmp.3 = add int %i.0, 1
|
||
|
br label %loopentry
|
||
|
}
|