[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/ConstantExprLowering.llx

Chris Lattner lattner at cs.uiuc.edu
Fri Jun 25 02:48:02 PDT 2004


Changes in directory llvm/test/Regression/CodeGen/Generic:

ConstantExprLowering.llx added (r1.1)

---
Log message:

New testcase for constant expression lowering pass, contributed by Vladimir Prus!


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

Index: llvm/test/Regression/CodeGen/Generic/ConstantExprLowering.llx
diff -c /dev/null llvm/test/Regression/CodeGen/Generic/ConstantExprLowering.llx:1.1
*** /dev/null	Fri Jun 25 02:47:23 2004
--- llvm/test/Regression/CodeGen/Generic/ConstantExprLowering.llx	Fri Jun 25 02:47:13 2004
***************
*** 0 ****
--- 1,26 ----
+ ; RUN: llvm-as < %s | opt -lowerconstantexprs -disable-output
+ 
+ %.str_1 = internal constant [16 x sbyte] c"%d %d %d %d %d\0A\00"
+ 
+ %XA = external global int
+ %XB = external global int
+ 
+ implementation   ; Functions:
+ 
+ declare int %printf(sbyte*, ...)
+ 
+ void %test(int %A, int %B, int %C, int %D) {
+ entry:
+         %t1 = setlt int %A, 0
+ 	br bool %t1, label %less, label %not_less
+ less:    
+         br label %not_less
+ not_less:	
+ 	%t2 = phi int [ sub ( int cast (int* %XA to int), 
+ 			       int cast (int* %XB to int) ), %less], 
+                       [ sub ( int cast (int* %XA to int), 
+ 			       int cast (int* %XB to int) ), %entry]
+ 	%tmp.39 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([16 x sbyte]*  %.str_1, long 0, long 0) )		; <int> [#uses=0]
+ 	ret void
+ }
+ 





More information about the llvm-commits mailing list