blob: 4344f9ef9d27c49f232e43c66d94f4c8185758b5 [file] [log] [blame]
Chris Lattner547eaef2003-10-18 23:54:45 +00001%A = global int 0
2
3int %main() {
4 %Ret = call int %test(bool true, int 0)
5 ret int %Ret
6}
7
8int %test(bool %c, int %A) {
9 br bool %c, label %Taken1, label %NotTaken
10
11Cont:
12 %V = phi int [0, %NotTaken],
13 [ sub (int cast (int* %A to int), int 1234), %Taken1]
14 ret int 0
15
16NotTaken:
17 br label %Cont
18
19Taken1:
20 %B = seteq int %A, 0
21 ; Code got inserted here, breaking the condition code.
22 br bool %B, label %Cont, label %ExitError
23
24ExitError:
25 ret int 12
26
27}