We actually don't have spiff anymore
[oota-llvm.git] / test / ExecutionEngine / 2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll
1 %A = global int 0
2
3 int %main() {
4         %Ret = call int %test(bool true, int 0) 
5         ret int %Ret
6 }
7
8 int %test(bool %c, int %A) {
9         br bool %c, label %Taken1, label %NotTaken
10
11 Cont:
12         %V = phi int [0, %NotTaken], 
13                       [ sub (int cast (int* %A to int), int 1234), %Taken1]
14         ret int 0
15
16 NotTaken:
17         br label %Cont  
18
19 Taken1:
20         %B = seteq int %A, 0
21         ; Code got inserted here, breaking the condition code.
22         br bool %B, label %Cont, label %ExitError
23
24 ExitError:
25         ret int 12
26
27 }