1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4 2; RUN: opt -mtriple=amdgcn-- -amdgpu-codegenprepare -S < %s | FileCheck -check-prefix=OPT %s 3 4; Check that CGP doesn't try to create a amdgcn.addrspace.nonnull of vector, as that's not supported. 5 6define <4 x ptr> @vec_of_local_to_flat_nonnull_arg() { 7; OPT-LABEL: define <4 x ptr> @vec_of_local_to_flat_nonnull_arg() { 8; OPT-NEXT: [[X:%.*]] = addrspacecast <4 x ptr addrspace(3)> zeroinitializer to <4 x ptr> 9; OPT-NEXT: ret <4 x ptr> [[X]] 10; 11 %x = addrspacecast <4 x ptr addrspace(3)> zeroinitializer to <4 x ptr> 12 ret <4 x ptr> %x 13} 14