Lines Matching refs:ptrtoint
15 ; Test constant folding of inttoptr (ptrtoint constantexpr)
20 %x = ptrtoint i32 addrspace(3)* @const_zero_i32_as3 to i32
29 %x = ptrtoint i32 addrspace(2)* @const_zero_i32_as2 to i16
38 ; CHECK-NEXT: ret i32 addrspace(4)* inttoptr (i16 ptrtoint (i32 addrspace(3)* @const_zero_i32_as3 t…
39 %x = ptrtoint i32 addrspace(3)* @const_zero_i32_as3 to i16
48 ; CHECK-NEXT: ret i32 addrspace(2)* inttoptr (i32 ptrtoint (i32 addrspace(3)* @const_zero_i32_as3 t…
49 %x = ptrtoint i32 addrspace(3)* @const_zero_i32_as3 to i32
57 ; CHECK-NEXT: ret i32 addrspace(3)* inttoptr (i8 ptrtoint (i32 addrspace(3)* @const_zero_i32_as3 to…
58 %x = ptrtoint i32 addrspace(3)* @const_zero_i32_as3 to i8
66 ret i8 ptrtoint (i32 addrspace(2)* inttoptr (i4 4 to i32 addrspace(2)*) to i8)
74 ret i8 ptrtoint (i32 addrspace(3)* inttoptr (i32 257 to i32 addrspace(3)*) to i8)
82 ret i64 ptrtoint (i32 addrspace(1)* inttoptr (i128 -1 to i32 addrspace(1)*) to i64)
94 ; CHECK-NEXT: ret i16 ptrtoint (i32 addrspace(3)* @g to i16)
95 %i = ptrtoint i32 addrspace(3)* @g to i16
102 ret i16 ptrtoint (i32 addrspace(3)* inttoptr (i16 9 to i32 addrspace(3)*) to i16)
122 %x = icmp eq i16 ptrtoint (i32 addrspace(3)* @g to i16), ptrtoint (i32 addrspace(3)* null to i16)
129 %x = icmp eq i16 ptrtoint (i32 addrspace(3)* null to i16), ptrtoint (i32 addrspace(3)* @g to i16)
136 %x = icmp eq i16 ptrtoint (i32 addrspace(3)* @g to i16), ptrtoint (i32 addrspace(3)* @g to i16)