[committed] testsuite: Add testcase for already fixed PR [PR111068]

Message ID ZXGHrGaIVD5gZxbz@tucnak
State Accepted
Headers
Series [committed] testsuite: Add testcase for already fixed PR [PR111068] |

Checks

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

Commit Message

Jakub Jelinek Dec. 7, 2023, 8:51 a.m. UTC
  Hi!

This one unfortunately can't be bisected, it ICEd until r14-3430
inclusive, but r14-3431 removed -mavx10.1-512 support and when it
was readded in r14-5607 it doesn't ICE anymore.

I'm just committing the testcase so that it doesn't reappear.

Regtested on x86_64-linux and i686-linux, committed to trunk as obvious.

2023-12-07  Jakub Jelinek  <jakub@redhat.com>

	PR target/111068
	* gcc.target/i386/pr111068.c: New test.


	Jakub
  

Patch

--- gcc/testsuite/gcc.target/i386/pr111068.c.jj	2023-12-06 20:15:56.358293435 +0100
+++ gcc/testsuite/gcc.target/i386/pr111068.c	2023-12-06 20:15:25.297720568 +0100
@@ -0,0 +1,12 @@ 
+/* PR target/111068 */
+/* { dg-do compile } */
+/* { dg-options "-ffloat-store -mavx10.1-512" } */
+
+typedef _Float16 __attribute__((__vector_size__ (8))) V;
+V u, v, w;
+
+void
+foo (void)
+{
+  v /= __builtin_shufflevector (w, u, 3, 3, 6, 1);
+}