]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix testcases that are raised by support -mevex512
authorHu, Lin1 <lin1.hu@intel.com>
Wed, 11 Oct 2023 08:03:17 +0000 (16:03 +0800)
committerHu, Lin1 <lin1.hu@intel.com>
Fri, 20 Oct 2023 06:33:58 +0000 (14:33 +0800)
Hi, all

This patch aims to fix some scan-asm fail of pr89229-{5,6,7}b.c since we emit
scalar vmov{s,d} here, when trying to use x/ymm 16+ w/o avx512vl but with
avx512f+evex512.

If everyone has no objection to the modification of this behavior, then we tend
to solve these failures by modifying these testcases.

BRs,
Lin

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr89229-5b.c: Modify test.
* gcc.target/i386/pr89229-6b.c: Ditto.
* gcc.target/i386/pr89229-7b.c: Ditto.

gcc/testsuite/gcc.target/i386/pr89229-5b.c
gcc/testsuite/gcc.target/i386/pr89229-6b.c
gcc/testsuite/gcc.target/i386/pr89229-7b.c

index 261f2e12e8d1473fec363199d7a87b85a8e22145..8a81585e7904bcb659c5e630ccc1c2377df14fc2 100644 (file)
@@ -3,4 +3,4 @@
 
 #include "pr89229-5a.c"
 
-/* { dg-final { scan-assembler-times "vmovdqa32\[^\n\r]*zmm1\[67]\[^\n\r]*zmm1\[67]" 1 } } */
+/* { dg-final { scan-assembler-times "vmovsd\[^\n\r]*xmm1\[67]\[^\n\r]*xmm1\[67]\[^\n\r]*xmm1\[67]" 1 } } */
index a74f7169e6e8e354342790ad908d41a797c4654e..0c27daa4f74da2024ecd9249258487699bd73ab1 100644 (file)
@@ -3,4 +3,4 @@
 
 #include "pr89229-6a.c"
 
-/* { dg-final { scan-assembler-times "vmovaps\[^\n\r]*zmm1\[67]\[^\n\r]*zmm1\[67]" 1 } } */
+/* { dg-final { scan-assembler-times "vmovss\[^\n\r]*xmm1\[67]\[^\n\r]*xmm1\[67]\[^\n\r]*xmm1\[67]" 1 } } */
index d3a56e6e2b7ff276f54c7dd654f07e52acfb58cd..baba99ec7754d78ddfa1500da46b8db091b3ba2a 100644 (file)
@@ -3,4 +3,4 @@
 
 #include "pr89229-7a.c"
 
-/* { dg-final { scan-assembler-times "vmovdqa32\[^\n\r]*zmm1\[67]\[^\n\r]*zmm1\[67]" 1 } } */
+/* { dg-final { scan-assembler-times "vmovss\[^\n\r]*xmm1\[67]\[^\n\r]*xmm1\[67]\[^\n\r]*xmm1\[67]" 1 } } */