1 // REQUIRES: amdgpu-registered-target 2 // RUN: %clang_cc1 -triple amdgcn-unknown-amdhsa -target-cpu tahiti -verify -S -o - %s 3 4 // FIXME: We only get one error if the functions are the other order in the 5 // file. 6 7 typedef unsigned long ulong; 8 9 ulong test_s_memrealtime() 10 { 11 return __builtin_amdgcn_s_memrealtime(); // expected-error {{'__builtin_amdgcn_s_memrealtime' needs target feature s-memrealtime}} 12 } 13 14 void test_s_sleep(int x) 15 { 16 __builtin_amdgcn_s_sleep(x); // expected-error {{argument to '__builtin_amdgcn_s_sleep' must be a constant integer}} 17 } 18 19