brintos

brintos / llvm-project-archived public Read only

0
0
Text · 640 B · 94c571a Raw
14 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 42; RUN: opt -mtriple=amdgcn-- -amdgpu-codegenprepare -S < %s | FileCheck -check-prefix=OPT %s3 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> %x13}14