1 // RUN: %clang_cc1 -fsyntax-only -triple arm64-- -DARM -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -triple x86_64-- -DX86 -verify %s
3 // RUN: %clang_cc1 -fsyntax-only -triple powerpc64-unknown-linux-gnu -DPPC \
5 // RUN: %clang_cc1 -fsyntax-only -triple riscv32-unknown-linux-gnu -DRISCV \
7 // RUN: %clang_cc1 -fsyntax-only -triple riscv64-unknown-linux-gnu -DRISCV \
9 // expected-no-diagnostics
10 #if __has_builtin(__builtin_cpu_is)
11 # if defined(ARM) || defined(RISCV)
12 # error "ARM/RISCV shouldn't have __builtin_cpu_is"
16 #if __has_builtin(__builtin_cpu_init)
17 # if defined(ARM) || defined(PPC)
18 # error "ARM/PPC shouldn't have __builtin_cpu_init"
22 # error "RISCV should have __builtin_cpu_init"
26 #if !__has_builtin(__builtin_cpu_supports)
27 # if defined(ARM) || defined(X86) || defined(RISCV)
28 # error "ARM/X86/RISCV should have __builtin_cpu_supports"