The patch adds AArch64 target builtin
__builtin_cpu_supports("feature1+...+featureN")
which return true if all specified CPU features in argument are detected.
Also native run aarch64 tests for compiler-rt features detection mechanism
were added.
Paths
| Differential D153153
[AArch64][RFC][Draft] Implement __builtin_cpu_supports, compiler-rt tests. Needs ReviewPublic Authored by ilinpv on Jun 16 2023, 9:42 AM.
Details
Summary The patch adds AArch64 target builtin __builtin_cpu_supports("feature1+...+featureN") which return true if all specified CPU features in argument are detected.
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 16 2023, 9:42 AM
Revision Contents
Diff 532200 clang/include/clang/Basic/BuiltinsAArch64.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/aarch64-cpu-supports-target.c
clang/test/CodeGen/aarch64-cpu-supports.c
clang/test/Sema/aarch64-cpu-supports.c
compiler-rt/test/builtins/Unit/aarch64_cpu_features_test.c
|