llvm-6502/test/ExecutionEngine/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll
Chris Lattner cb64241795 update test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10092 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-19 19:47:36 +00:00

28 lines
468 B
LLVM

%A = global int 0
int %main() {
%Ret = call int %test(bool true, int 0)
ret int %Ret
}
int %test(bool %c, int %A) {
br bool %c, label %Taken1, label %NotTaken
Cont:
%V = phi int [0, %NotTaken],
[ sub (int cast (int* %A to int), int 1234), %Taken1]
ret int 0
NotTaken:
br label %Cont
Taken1:
%B = seteq int %A, 0
; Code got inserted here, breaking the condition code.
br bool %B, label %Cont, label %ExitError
ExitError:
ret int 12
}