view clang/test/Preprocessor/hash_builtin.cpp @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents c4bab56944e8
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