| 1 |
// REQUIRES: amdgpu-registered-target |
| 2 |
// RUN: %clang_cc1 -triple amdgcn-- -target-cpu gfx1200 -verify -S -o - %s |
| 3 |
|
| 4 |
typedef unsigned int uint; |
| 5 |
|
| 6 |
void test_permlane16_var(global uint* out, uint a, uint b, uint c, uint d) { |
| 7 |
*out = __builtin_amdgcn_permlane16_var(a, b, c, d, 1); // expected-error{{argument to '__builtin_amdgcn_permlane16_var' must be a constant integer}} |
| 8 |
*out = __builtin_amdgcn_permlane16_var(a, b, c, 1, d); // expected-error{{argument to '__builtin_amdgcn_permlane16_var' must be a constant integer}} |
| 9 |
} |
| 10 |
|
| 11 |
void test_permlanex16_var(global uint* out, uint a, uint b, uint c, uint d) { |
| 12 |
*out = __builtin_amdgcn_permlanex16_var(a, b, c, d, 1); // expected-error{{argument to '__builtin_amdgcn_permlanex16_var' must be a constant integer}} |
| 13 |
*out = __builtin_amdgcn_permlanex16_var(a, b, c, 1, d); // expected-error{{argument to '__builtin_amdgcn_permlanex16_var' must be a constant integer}} |
| 14 |
} |