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

--- Comment #1 from Haochen Jiang <haochen.jiang at intel dot com> ---
A possible change could be:

diff --git a/gcc/testsuite/gcc.target/i386/vect-pragma-target-1.c
b/gcc/testsuite/gcc.target/i386/vect-pragma-target-1.c
index f5e71e453ec..7f0ce3f8544 100644
--- a/gcc/testsuite/gcc.target/i386/vect-pragma-target-1.c
+++ b/gcc/testsuite/gcc.target/i386/vect-pragma-target-1.c
@@ -2,7 +2,7 @@
 /* { dg-options "-O0" }                                                 */
 /* { dg-final { scan-assembler-times "paddd.+xmm\[0-9]+"        1 } }   */
 /* { dg-final { scan-assembler-times "vfmadd132ps.+ymm\[0-9]+"  1 } }   */
-/* { dg-final { scan-assembler-times "vpaddw.+zmm\[0-9]+"       1 } }   */
+/* { dg-final { scan-assembler-times "vpaddw.+(y|z)mm\[0-9]+"   1 } }   */
 #ifndef CHECK_DEFINES
 #define CHECK_DEFINES 0
 #endif
diff --git a/gcc/testsuite/gcc.target/i386/vect-pragma-target-2.c
b/gcc/testsuite/gcc.target/i386/vect-pragma-target-2.c
index 349680453a4..10f521289b6 100644
--- a/gcc/testsuite/gcc.target/i386/vect-pragma-target-2.c
+++ b/gcc/testsuite/gcc.target/i386/vect-pragma-target-2.c
@@ -1,7 +1,7 @@
 /* { dg-do compile { target { i?86-*-* x86_64-*-* } } }                 */
-/* { dg-options "-O0" }                                                 */
+/* { dg-options "-O0 -mno-sse3" }                                      */
 /* { dg-final { scan-assembler-times "paddd.+xmm\[0-9]+"        1 } }   */
-/* { dg-final { scan-assembler-times "vfmadd132ps.+ymm\[0-9]+"  1 } }   */
-/* { dg-final { scan-assembler-times "vpaddw.+zmm\[0-9]+"       1 } }   */
+/* { dg-final { scan-assembler-times "vfmadd132ps.+ymm\[0-9]+" 1 } }   */
+/* { dg-final { scan-assembler-times "vpaddw.+(y|z)mm\[0-9]+"  1 } }   */
 #define CHECK_DEFINES 1
 #include "vect-pragma-target-1.c"

Or we might need to append -mprefer-vector-width=512 explicitly since many
-mtune=arch-specific are prefering 256.

Reply via email to