https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111350

--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #5)
> (In reply to Iain Sandoe from comment #4)
> > (In reply to Francois-Xavier Coudert from comment #3)
> > > Clang: 14.0.0 build 1400
> > > CLT: 14.2.0.0.1.1668646533
> > 
> > ah, it seems the vfcmulcph insn, at least, is not supported before XC14, and
> > it gives the error at 14.0b3 and 14.3.  It seems fixed at XC 15b7.
> 
> perhaps we can add something to the "avx512fp16" target test that requires
> assembly of one of those insns so that the tests will be automatically
> unsupported for broken assemblers.

maybe something like this (untested because 15b7 is only supported on macOS13
and my avx512 box has an earlier install)

diff --git a/gcc/testsuite/lib/target-supports.exp
b/gcc/testsuite/lib/target-supports.exp
index 0ea8bcb24e1..2d74f62e887 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -9776,6 +9776,7 @@ proc check_effective_target_avx512fp16 { } {
        void foo (void)
        {
          asm volatile ("vmovw %edi, %xmm0");
+         asm volatile ("vfcmulcph %xmm1, %xmm2, %xmm3");
        }
     } "-O2 -mavx512fp16" ]
 }

Reply via email to