mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-24 20:44:51 +00:00
New testcase, distilled from 176.gcc codegen failure
llvm-svn: 9248
This commit is contained in:
parent
008529a320
commit
a7adb9cbf2
@ -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
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user