]> 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)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 4 Apr 2024 18:34:13 +0000 (19:34 +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.

(cherry picked from commit d65eb8a6bbeae7533dd41cb307b427f3f8585d9b)

gcc/testsuite/lib/target-supports.exp

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