Devon Loehr bac4171073
Remove xbegin and _xend (#126952)
`intrin.h` contains declarations for both `xbegin` and `_xend`, but they
should already be included transitively from `rtmintrin.h` via
`immintrin.h` and/or `x86intrin.h`. Having them in both places causes
problems if both headers are included.

Furthermore, the `intrin.h` declaration of `xbegin` seems to be bugged
anyway, since it's missing its leading underscore.

Fixes #95133
2025-02-22 16:46:08 +08:00

11 lines
390 B
C++

// RUN: %clang_cc1 -triple x86_64-pc-win32 \
// RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
// RUN: -ffreestanding -fsyntax-only -Werror -Wsystem-headers \
// RUN: -isystem %S/Inputs/include %s
#include <immintrin.h>
#pragma clang attribute push(__attribute__((target("avx"))), apply_to=function)
#include <intrin.h>
#pragma clang attribute pop