1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py 2; RUN: opt -S -mtriple=amdgcn-- -mcpu=fiji -data-layout=A5 -passes=amdgpu-promote-alloca < %s | FileCheck -check-prefix=OPT %s 3 4define i64 @test_pointer_array(i64 %v) { 5; OPT-LABEL: @test_pointer_array( 6; OPT-NEXT: entry: 7; OPT-NEXT: [[TMP0:%.*]] = inttoptr i64 [[V:%.*]] to ptr 8; OPT-NEXT: [[TMP1:%.*]] = insertelement <3 x ptr> undef, ptr [[TMP0]], i32 0 9; OPT-NEXT: ret i64 [[V]] 10; 11entry: 12 %a = alloca [3 x ptr], align 16, addrspace(5) 13 store i64 %v, ptr addrspace(5) %a, align 16 14 %ld = load i64, ptr addrspace(5) %a, align 16 15 ret i64 %ld 16} 17