testsuite, x86: Handle a broken assembler.

Message ID 20231029071953.55803-1-iain@sandoe.co.uk
State Accepted
Headers
Series testsuite, x86: Handle a broken assembler. |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Iain Sandoe Oct. 29, 2023, 7:19 a.m. UTC
  Tested on x86_64-darwin and x86_64-linux,
OK for trunk?
thanks
Iain

--- 8< ---

Earlier assembler support for complex fp16 on x86_64 Darin 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.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
---
 gcc/testsuite/lib/target-supports.exp | 1 +
 1 file changed, 1 insertion(+)
  

Patch

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