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