[llvm-commits] CVS: llvm/test/Regression/Jello/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.llx

Chris Lattner lattner at cs.uiuc.edu
Sat Oct 18 18:55:01 PDT 2003


Changes in directory llvm/test/Regression/Jello:

2003-10-18-PHINode-ConstantExpr-CondCode-Failure.llx added (r1.1)

---
Log message:

New testcase, distilled from 176.gcc codegen failure


---
Diffs of the changes:  (+29 -0)

Index: llvm/test/Regression/Jello/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.llx
diff -c /dev/null llvm/test/Regression/Jello/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.llx:1.1
*** /dev/null	Sat Oct 18 18:54:55 2003
--- llvm/test/Regression/Jello/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.llx	Sat Oct 18 18:54:45 2003
***************
*** 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
+ 
+ }





More information about the llvm-commits mailing list