]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, x86: Handle a broken assembler
authorIain Sandoe <iains.gcc@gmail.com>
Sun, 29 Oct 2023 07:19:53 +0000 (07:19 +0000)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 29 Nov 2023 10:26:27 +0000 (11:26 +0100)
Earlier assembler support for complex fp16 on x86_64 Darwin is broken.
This adds an additional test to the existing target-supports that fails
for the broken assemblers but works for the newer, fixed, ones.

gcc/testsuite/ChangeLog:

* lib/target-supports.exp: Test an asm line that fails on broken
Darwin assembler versions.

gcc/testsuite/lib/target-supports.exp

index 87b2ae58720972cda5a62aa0a974340ab7f4b713..a72233588f90c822333cb334074e5a7a4950a210 100644 (file)
@@ -10212,6 +10212,7 @@ proc check_effective_target_avx512fp16 { } {
        void foo (void)
        {
          asm volatile ("vmovw %edi, %xmm0");
+         asm volatile ("vfcmulcph %xmm1, %xmm2, %xmm3{%k1}");
        }
     } "-O2 -mavx512fp16" ]
 }