]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Add testcase for already fixed PR [PR111068]
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Dec 2023 08:48:57 +0000 (09:48 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 7 Dec 2023 08:48:57 +0000 (09:48 +0100)
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.

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

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

gcc/testsuite/gcc.target/i386/pr111068.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/i386/pr111068.c b/gcc/testsuite/gcc.target/i386/pr111068.c
new file mode 100644 (file)
index 0000000..4ff2ea0
--- /dev/null
@@ -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);
+}