1cefe472cSYaxun (Sam) Liu // RUN: %clang_cc1 -triple amdgcn -target-cpu gfx906 -E %s -o - | FileCheck %s 2*88e2bb40SAlex Voicu // RUN: %clang_cc1 -triple spirv64-amd-amdhsa -E %s -o - | FileCheck %s --check-prefix=SPIRV-AMDGCN 3cefe472cSYaxun (Sam) Liu 4cefe472cSYaxun (Sam) Liu // CHECK: has_s_memtime_inst 5*88e2bb40SAlex Voicu // SPIRV-AMDGCN: has_s_memtime_inst 6cefe472cSYaxun (Sam) Liu #if __has_builtin(__builtin_amdgcn_s_memtime) 7cefe472cSYaxun (Sam) Liu int has_s_memtime_inst; 8cefe472cSYaxun (Sam) Liu #endif 9cefe472cSYaxun (Sam) Liu 10cefe472cSYaxun (Sam) Liu // CHECK-NOT: has_gfx10_inst 11*88e2bb40SAlex Voicu // SPIRV-AMDGCN: has_gfx10_inst 12cefe472cSYaxun (Sam) Liu #if __has_builtin(__builtin_amdgcn_mov_dpp8) 13cefe472cSYaxun (Sam) Liu int has_gfx10_inst; 14cefe472cSYaxun (Sam) Liu #endif 15