mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 02:33:44 +00:00
20 lines
355 B
LLVM
20 lines
355 B
LLVM
|
; RUN: opt < %s -licm -disable-output
|
||
|
define void @foo (i8* %v)
|
||
|
{
|
||
|
entry:
|
||
|
br i1 undef, label %preheader, label %return
|
||
|
|
||
|
preheader:
|
||
|
br i1 undef, label %loop, label %return
|
||
|
|
||
|
loop:
|
||
|
indirectbr i8* undef, [label %preheader, label %stuff]
|
||
|
|
||
|
stuff:
|
||
|
%0 = load i8* undef, align 1
|
||
|
br label %loop
|
||
|
|
||
|
return:
|
||
|
ret void
|
||
|
|
||
|
}
|