brintos

brintos / llvm-project-archived public Read only

0
0
Text · 448 B · d518fe3 Raw
9 lines · plain
1// REQUIRES: amdgpu-registered-target2 3// RUN: %clang_cc1 -triple amdgcn-unknown-unknown -target-cpu gfx1100 -verify -emit-llvm -o - %s4 5void builtin_test_unsupported(int a, int b) {6  __builtin_amdgcn_s_sleep_var(a); // expected-error {{'__builtin_amdgcn_s_sleep_var' needs target feature gfx12-insts}}7  b = __builtin_amdgcn_ds_bpermute_fi_b32(a, b); // expected-error {{'__builtin_amdgcn_ds_bpermute_fi_b32' needs target feature gfx12-insts}}8}9