public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Committed] Tweak new gcc.target/i386/pr107548-1.c for -march=cascadelake.
@ 2022-12-24 22:13 Roger Sayle
  2022-12-25  8:16 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Roger Sayle @ 2022-12-24 22:13 UTC (permalink / raw)
  To: 'GCC Patches'

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]


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
--


[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1168 bytes --]

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" } } */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Committed] Tweak new gcc.target/i386/pr107548-1.c for -march=cascadelake.
  2022-12-24 22:13 [Committed] Tweak new gcc.target/i386/pr107548-1.c for -march=cascadelake Roger Sayle
@ 2022-12-25  8:16 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2022-12-25  8:16 UTC (permalink / raw)
  To: Roger Sayle; +Cc: 'GCC Patches'

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.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-25  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-24 22:13 [Committed] Tweak new gcc.target/i386/pr107548-1.c for -march=cascadelake Roger Sayle
2022-12-25  8:16 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).