mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
99266d81a2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28214 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
242 B
LLVM
13 lines
242 B
LLVM
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'ret int %A'
|
|
|
|
int %test(int %A) {
|
|
%X = or bool false, false
|
|
br bool %X, label %T, label %C
|
|
T:
|
|
%B = add int %A, 1
|
|
br label %C
|
|
C:
|
|
%C = phi int [%B, %T], [%A, %0]
|
|
ret int %C
|
|
}
|