1 ; RUN: llvm-as < %s | llvm-dis | not grep ptrtoint 2 ; All of these should be eliminable 3 4 5 define i32 @foo() { 6 ret i32 and (i32 ptrtoint (i32()* @foo to i32), i32 1) 7 } 8 9 define i32 @foo2() { 10 ret i32 and (i32 1, i32 ptrtoint (i32()* @foo2 to i32)) 11 } 12 13 define i1 @foo3() { 14 ret i1 icmp ne (i1()* @foo3, i1()* null) 15 } 16