[Committed] Tweak new gcc.target/i386/pr107548-1.c for -march=cascadelake.

Message ID 006e01d917e4$f906e020$eb14a060$@nextmovesoftware.com
State Accepted
Headers
Series [Committed] Tweak new gcc.target/i386/pr107548-1.c for -march=cascadelake. |

Checks

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

Commit Message

Roger Sayle Dec. 24, 2022, 10:13 p.m. UTC
  My recently added testcases gcc.target/i386/pr107548-[12].c need to be
tweaked slightly for -march=cascadelake.  Committed as obvious.


2022-12-24  Roger Sayle  <roger@nextmovesoftware.com>

gcc/testsuite/ChangeLog
	PR target/107548
	* gcc.target/i386/pr107548-1.c: Match both vmovd and movd.
	* gcc.target/i386/pr107548-2.c: Match both vpaddq and paddq.

Roger
--
  

Comments

Andreas Schwab Dec. 25, 2022, 8:16 a.m. UTC | #1
On Dez 24 2022, Roger Sayle wrote:

> +/* { dg-final { scan-assembler-times "v?paddd" 6 } } */

Since this is not anchored, the v? pattern is redundant.

> +/* { dg-final { scan-assembler-times "v?paddq" 2 } } */
> +/* { dg-final { scan-assembler "v?psrldq" } } */

Likewise.
  

Patch

diff --git a/gcc/testsuite/gcc.target/i386/pr107548-1.c b/gcc/testsuite/gcc.target/i386/pr107548-1.c
index da78f75..f384492 100644
--- a/gcc/testsuite/gcc.target/i386/pr107548-1.c
+++ b/gcc/testsuite/gcc.target/i386/pr107548-1.c
@@ -20,6 +20,6 @@  unsigned int foo3 (v4si a, v4si b)
   return a[0] + a[3];
 }
 
-/* { dg-final { scan-assembler-times "\tmovd\t" 3 } } */
-/* { dg-final { scan-assembler-times "paddd" 6 } } */
+/* { dg-final { scan-assembler-times "\tv?movd\t" 3 } } */
+/* { dg-final { scan-assembler-times "v?paddd" 6 } } */
 /* { dg-final { scan-assembler-not "addl" } } */
diff --git a/gcc/testsuite/gcc.target/i386/pr107548-2.c b/gcc/testsuite/gcc.target/i386/pr107548-2.c
index b57594e..58f7b1c 100644
--- a/gcc/testsuite/gcc.target/i386/pr107548-2.c
+++ b/gcc/testsuite/gcc.target/i386/pr107548-2.c
@@ -9,5 +9,5 @@  unsigned long long foo(v2di a, v2di b)
 }
 
 /* { dg-final { scan-assembler-not "\taddq\t" } } */
-/* { dg-final { scan-assembler-times "paddq" 2 } } */
-/* { dg-final { scan-assembler "psrldq" } } */
+/* { dg-final { scan-assembler-times "v?paddq" 2 } } */
+/* { dg-final { scan-assembler "v?psrldq" } } */