]> 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>
Fri, 19 Apr 2024 13:13:18 +0000 (14:13 +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 1eaa034f5f42827fe3508ea8e54a9bce88bbad9d..e0076ed8f69ed4c416c2905a668902dde4daab2e 100644 (file)
@@ -9355,6 +9355,7 @@ proc check_effective_target_avx512fp16 { } {
        void foo (void)
        {
          asm volatile ("vmovw %edi, %xmm0");
+         asm volatile ("vfcmulcph %xmm1, %xmm2, %xmm3{%k1}");
        }
     } "-O2 -mavx512fp16" ]
 }