3 target datalayout = "p32:32:32-p1:16:16:16-n16:32"
5 declare void @foo(i64) nounwind
7 define i64 @test1(i32 addrspace(1)* %x) nounwind {
8 %y = ptrtoint i32 addrspace(1)* %x to i64
12 define <4 x i64> @test1_vector(<4 x i32 addrspace(1)*> %x) nounwind {
13 %y = ptrtoint <4 x i32 addrspace(1)*> %x to <4 x i64>
17 define i32 addrspace(1)* @test2(i64 %x) nounwind {
18 %y = inttoptr i64 %x to i32 addrspace(1)*
19 ret i32 addrspace(1)* %y
22 define <4 x i32 addrspace(1)*> @test2_vector(<4 x i64> %x) nounwind {
23 %y = inttoptr <4 x i64> %x to <4 x i32 addrspace(1)*>
24 ret <4 x i32 addrspace(1)*> %y