16 lines · plain
1; REQUIRES: amdgpu-registered-target2; RUN: not opt -S -mtriple=amdgcn-amd-amdhsa -passes=hipstdpar-select-accelerator-code \3; RUN: %s 2>&1 | FileCheck %s4 5; CHECK: error: The first element in the Indirection Table must be an integer; %struct.anon.1 = type { ptr, ptr } is incorrect.6%struct.anon.1 = type { ptr, ptr }7%class.anon = type { %struct.anon.1, ptr, %struct.anon.1 }8@a = external hidden local_unnamed_addr addrspace(1) global ptr, align 89@__hipstdpar_symbol_indirection_table = weak_odr protected addrspace(4) externally_initialized constant %class.anon zeroinitializer, align 810 11define amdgpu_kernel void @store(ptr %p) {12entry:13 store ptr %p, ptr addrspace(1) @a, align 814 ret void15}16