New testcase, distilled from 176.gcc codegen failure

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9248 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-10-18 23:54:45 +00:00
parent 365f09a0e1
commit 547eaefb0e

View File

@ -0,0 +1,29 @@
; RUN: llvm-as < %s | lli -force-interpreter=false
%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
}