[clang] [llvm] Implement a subset of builtin_cpu_supports() features (PR #82809)

Nemanja Ivanovic via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 5 22:41:16 PST 2024


================
@@ -0,0 +1,171 @@
+// RUN: echo "int main() { return __builtin_cpu_supports(\"4xxmac\");}" > %t.c
----------------
nemanjai wrote:

This is an interesting way of testing, where we create each test on the fly. I am not against it if it works on all platforms (including Windows). However, I would like to see one test case where we have multiple calls to the builtins, with multiple uses of each "support method" in the same compilation unit.

https://github.com/llvm/llvm-project/pull/82809


More information about the cfe-commits mailing list