[llvm-commits] CVS: llvm/test/Regression/Assembler/2004-03-07-FunctionAddressAlignment.llx

Chris Lattner lattner at cs.uiuc.edu
Mon Mar 8 00:18:01 PST 2004


Changes in directory llvm/test/Regression/Assembler:

2004-03-07-FunctionAddressAlignment.llx added (r1.1)

---
Log message:

New testcase for folding in some important situations.  The first two 
come up a lot in the code generated by the C++ front-end for pointers
to member functions.  See PR166.


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

Index: llvm/test/Regression/Assembler/2004-03-07-FunctionAddressAlignment.llx
diff -c /dev/null llvm/test/Regression/Assembler/2004-03-07-FunctionAddressAlignment.llx:1.1
*** /dev/null	Mon Mar  8 00:17:25 2004
--- llvm/test/Regression/Assembler/2004-03-07-FunctionAddressAlignment.llx	Mon Mar  8 00:17:15 2004
***************
*** 0 ****
--- 1,15 ----
+ ; RUN: llvm-as < %s | llvm-dis | not grep cast
+ ; All of these should be eliminable
+ 
+ 
+ int %foo() {
+ 	ret int and (int cast (int()* %foo to int), int 1)
+ }
+ 
+ int %foo2() {
+ 	ret int and (int 1, int cast (int()* %foo2 to int))
+ }
+ 
+ bool %foo3() {
+ 	ret bool cast (bool()* %foo3 to bool)
+ }





More information about the llvm-commits mailing list