[llvm-commits] [llvm] r47194 - /llvm/trunk/test/Assembler/2004-03-07-FunctionAddressAlignment.ll

Chris Lattner sabre at nondot.org
Fri Feb 15 15:58:25 PST 2008


Author: lattner
Date: Fri Feb 15 17:58:25 2008
New Revision: 47194

URL: http://llvm.org/viewvc/llvm-project?rev=47194&view=rev
Log:
upgrade this test, which wasn't testing the right thing since llvm-upgrade came around.

Modified:
    llvm/trunk/test/Assembler/2004-03-07-FunctionAddressAlignment.ll

Modified: llvm/trunk/test/Assembler/2004-03-07-FunctionAddressAlignment.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/2004-03-07-FunctionAddressAlignment.ll?rev=47194&r1=47193&r2=47194&view=diff

==============================================================================
--- llvm/trunk/test/Assembler/2004-03-07-FunctionAddressAlignment.ll (original)
+++ llvm/trunk/test/Assembler/2004-03-07-FunctionAddressAlignment.ll Fri Feb 15 17:58:25 2008
@@ -1,15 +1,15 @@
-; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep cast
+; RUN: llvm-as < %s | llvm-dis | not grep ptrtoint
 ; All of these should be eliminable
 
 
-int %foo() {
-	ret int and (int cast (int()* %foo to int), int 1)
+define i32 @foo() {
+	ret i32 and (i32 ptrtoint (i32()* @foo to i32), i32 1)
 }
 
-int %foo2() {
-	ret int and (int 1, int cast (int()* %foo2 to int))
+define i32 @foo2() {
+	ret i32 and (i32 1, i32 ptrtoint (i32()* @foo2 to i32))
 }
 
-bool %foo3() {
-	ret bool cast (bool()* %foo3 to bool)
+define i1 @foo3() {
+	ret i1 icmp ne (i1()* @foo3, i1()* null)
 }





More information about the llvm-commits mailing list