25 lines · plain
1; RUN: opt -passes=lint < %s2 3target datalayout = "p32:32:32-p1:16:16:16-n16:32"4 5declare void @foo(i64) nounwind6 7define i64 @test1(ptr addrspace(1) %x) nounwind {8 %y = ptrtoint ptr addrspace(1) %x to i649 ret i64 %y10}11 12define <4 x i64> @test1_vector(<4 x ptr addrspace(1)> %x) nounwind {13 %y = ptrtoint <4 x ptr addrspace(1)> %x to <4 x i64>14 ret <4 x i64> %y15}16 17define ptr addrspace(1) @test2(i64 %x) nounwind {18 %y = inttoptr i64 %x to ptr addrspace(1)19 ret ptr addrspace(1) %y20}21 22define <4 x ptr addrspace(1)> @test2_vector(<4 x i64> %x) nounwind {23 %y = inttoptr <4 x i64> %x to <4 x ptr addrspace(1)>24 ret <4 x ptr addrspace(1)> %y25}