[llvm-commits] CVS: llvm/test/Regression/Transforms/IPConstantProp/return-constant.ll

Chris Lattner lattner at cs.uiuc.edu
Sat Nov 13 22:03:00 PST 2004



Changes in directory llvm/test/Regression/Transforms/IPConstantProp:

return-constant.ll added (r1.1)
---
Log message:

New testcase



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

Index: llvm/test/Regression/Transforms/IPConstantProp/return-constant.ll
diff -c /dev/null llvm/test/Regression/Transforms/IPConstantProp/return-constant.ll:1.1
*** /dev/null	Sun Nov 14 00:02:56 2004
--- llvm/test/Regression/Transforms/IPConstantProp/return-constant.ll	Sun Nov 14 00:02:46 2004
***************
*** 0 ****
--- 1,16 ----
+ ; RUN: llvm-as < %s | opt -ipconstprop -instcombine | llvm-dis 
+ implementation
+ 
+ internal int %foo(bool %C) {
+ 	br bool %C, label %T, label %F
+ T:
+ 	ret int 52
+ F:
+ 	ret int 52
+ }
+ 
+ bool %caller(bool %C) {
+ 	%X = call int %foo(bool %C)
+ 	%Y = cast int %X to bool
+ 	ret bool %Y
+ }






More information about the llvm-commits mailing list