1 // RUN
: %clang_cc1 -O0 -cl-std
=CL2.0 -triple amdgcn-amd-amdhsa -target-cpu gfx1100 \
2 // RUN
: -verify -S -o - %s
4 // REQUIRES
: amdgpu-registered-target
6 typedef int v2i __attribute__
((ext_vector_type(2)));
7 typedef short v8s __attribute__
((ext_vector_type(8)));
8 typedef half v8h __attribute__
((ext_vector_type(8)));
9 typedef __bf16 v8y __attribute__
((ext_vector_type(8)));
10 typedef short v4s __attribute__
((ext_vector_type(4)));
11 typedef half v4h __attribute__
((ext_vector_type(4)));
12 typedef __bf16 v4y __attribute__
((ext_vector_type(4)));
14 void amdgcn_global_load_tr
(global v2i
* v2i_inptr
, global v8s
* v8s_inptr
, global v8h
* v8h_inptr
, global v8y
* v8y_inptr
,
15 global int
* int_inptr
, global v4s
* v4s_inptr
, global v4h
* v4h_inptr
, global v4y
* v4y_inptr
)
17 v2i out_1
= __builtin_amdgcn_global_load_tr_b64_v2i32
(v2i_inptr); // expected-error{{'__builtin_amdgcn_global_load_tr_b64_v2i32' needs target feature gfx12-insts,wavefrontsize32}}
18 v8s out_2
= __builtin_amdgcn_global_load_tr_b128_v8i16
(v8s_inptr); // expected-error{{'__builtin_amdgcn_global_load_tr_b128_v8i16' needs target feature gfx12-insts,wavefrontsize32}}
19 v8h out_3
= __builtin_amdgcn_global_load_tr_b128_v8f16
(v8h_inptr); // expected-error{{'__builtin_amdgcn_global_load_tr_b128_v8f16' needs target feature gfx12-insts,wavefrontsize32}}
20 v8y out_4
= __builtin_amdgcn_global_load_tr_b128_v8bf16
(v8y_inptr); // expected-error{{'__builtin_amdgcn_global_load_tr_b128_v8bf16' needs target feature gfx12-insts,wavefrontsize32}}
22 int out_5
= __builtin_amdgcn_global_load_tr_b64_i32
(int_inptr); // expected-error{{'__builtin_amdgcn_global_load_tr_b64_i32' needs target feature gfx12-insts,wavefrontsize64}}
23 v4s out_6
= __builtin_amdgcn_global_load_tr_b128_v4i16
(v4s_inptr); // expected-error{{'__builtin_amdgcn_global_load_tr_b128_v4i16' needs target feature gfx12-insts,wavefrontsize64}}
24 v4h out_7
= __builtin_amdgcn_global_load_tr_b128_v4f16
(v4h_inptr); // expected-error{{'__builtin_amdgcn_global_load_tr_b128_v4f16' needs target feature gfx12-insts,wavefrontsize64}}
25 v4y out_8
= __builtin_amdgcn_global_load_tr_b128_v4bf16
(v4y_inptr); // expected-error{{'__builtin_amdgcn_global_load_tr_b128_v4bf16' needs target feature gfx12-insts,wavefrontsize64}}