view clang/test/Preprocessor/hash_builtin.cpp @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents
children
line wrap: on
line source

// RUN: %clang_cc1 -triple amdgcn -target-cpu gfx906 -E %s -o - | FileCheck %s

// CHECK: has_s_memtime_inst
#if __has_builtin(__builtin_amdgcn_s_memtime)
  int has_s_memtime_inst;
#endif

// CHECK-NOT: has_gfx10_inst
#if __has_builtin(__builtin_amdgcn_mov_dpp8)
  int has_gfx10_inst;
#endif