[clang] [flang] [flang] Add driver support for x86 -m[option] target feature flags (PR #220159)

via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 9 01:09:42 PDT 2026


================
@@ -87,3 +78,163 @@
 
 ! CHECK-SPARC-VIS: "-fc1" "-triple" "sparc64-{{[^"]+}}"
 ! CHECK-SPARC-VIS-SAME: "-target-feature" "+vis"
+
+!
+! ============================================================================
+! X86 m_x86_Features_Group: grouped checks to minimize driver invocations.
+! ============================================================================
+!
+! RUN: %flang --target=x86_64-linux-gnu -mx87 -mmmx -mamx-avx512 -mamx-bf16 -mamx-complex -mamx-fp16 -mamx-int8 -mamx-fp8 -mamx-tile -mamx-movrs -mcmpccxadd -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4a -mavx -mavx10.1 -mavx10.2 -mavx2 -mavx512f -mavx512bf16 -mavx512bitalg -mavx512bmm -mavx512bw -mavx512cd -mavx512dq -mavx512fp16 -c %s -### 2>&1 \
----------------
shivaramaarao wrote:

It is good to test all features like how it is done in clang. Yes, new features will also be added to the test.

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


More information about the cfe-commits mailing list