* [PATCH] PR 102935, Fix pr101384-1.c code generation test.
@ 2022-01-08 0:33 Michael Meissner
2022-01-11 17:06 ` Bill Schmidt
0 siblings, 1 reply; 3+ messages in thread
From: Michael Meissner @ 2022-01-08 0:33 UTC (permalink / raw)
To: gcc-patches, Michael Meissner, Segher Boessenkool,
David Edelsohn, Bill Schmidt, Peter Bergner, Will Schmidt
Fix pr101384-1.c code generation test.
Add support for the compiler using XXSPLTIB reg,255 to load all 1's into a
register on power9 and above instead of using VSPLTI{B,H,W} reg,-1.
gcc/testsuite/
2022-01-07 Michael Meissner <meissner@the-meissners.org>
PR testsuite/102935
* gcc.target/powerpc/pr101384-1.c: Update insn regexp for power9
and power10.
---
gcc/testsuite/gcc.target/powerpc/pr101384-1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/powerpc/pr101384-1.c b/gcc/testsuite/gcc.target/powerpc/pr101384-1.c
index 627d7d76721..41cf84bf8bc 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr101384-1.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr101384-1.c
@@ -2,7 +2,7 @@
/* { dg-do compile { target le } } */
/* { dg-options "-O2 -maltivec" } */
/* { dg-require-effective-target powerpc_altivec_ok } */
-/* { dg-final { scan-assembler-times {\mvspltis[whb] [^\n\r]*,-1\M} 9 } } */
+/* { dg-final { scan-assembler-times {\mvspltis[whb] [^\n\r]*,-1\M|\mxxspltib[^\n\r]*,255\M} 9 } } */
/* { dg-final { scan-assembler-times {\mvslw\M} 3 } } */
/* { dg-final { scan-assembler-times {\mvslh\M} 3 } } */
/* { dg-final { scan-assembler-times {\mvslb\M} 3 } } */
--
2.33.1
--
Michael Meissner, IBM
PO Box 98, Ayer, Massachusetts, USA, 01432
email: meissner@linux.ibm.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] PR 102935, Fix pr101384-1.c code generation test.
2022-01-08 0:33 [PATCH] PR 102935, Fix pr101384-1.c code generation test Michael Meissner
@ 2022-01-11 17:06 ` Bill Schmidt
2022-01-11 18:23 ` David Edelsohn
0 siblings, 1 reply; 3+ messages in thread
From: Bill Schmidt @ 2022-01-11 17:06 UTC (permalink / raw)
To: Michael Meissner, gcc-patches, Segher Boessenkool,
David Edelsohn, Peter Bergner, Will Schmidt
Hi Mike,
This looks fine to me. Maintainers?
Thanks,
Bill
On 1/7/22 6:33 PM, Michael Meissner wrote:
> Fix pr101384-1.c code generation test.
>
> Add support for the compiler using XXSPLTIB reg,255 to load all 1's into a
> register on power9 and above instead of using VSPLTI{B,H,W} reg,-1.
>
> gcc/testsuite/
> 2022-01-07 Michael Meissner <meissner@the-meissners.org>
>
> PR testsuite/102935
> * gcc.target/powerpc/pr101384-1.c: Update insn regexp for power9
> and power10.
> ---
> gcc/testsuite/gcc.target/powerpc/pr101384-1.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/testsuite/gcc.target/powerpc/pr101384-1.c b/gcc/testsuite/gcc.target/powerpc/pr101384-1.c
> index 627d7d76721..41cf84bf8bc 100644
> --- a/gcc/testsuite/gcc.target/powerpc/pr101384-1.c
> +++ b/gcc/testsuite/gcc.target/powerpc/pr101384-1.c
> @@ -2,7 +2,7 @@
> /* { dg-do compile { target le } } */
> /* { dg-options "-O2 -maltivec" } */
> /* { dg-require-effective-target powerpc_altivec_ok } */
> -/* { dg-final { scan-assembler-times {\mvspltis[whb] [^\n\r]*,-1\M} 9 } } */
> +/* { dg-final { scan-assembler-times {\mvspltis[whb] [^\n\r]*,-1\M|\mxxspltib[^\n\r]*,255\M} 9 } } */
> /* { dg-final { scan-assembler-times {\mvslw\M} 3 } } */
> /* { dg-final { scan-assembler-times {\mvslh\M} 3 } } */
> /* { dg-final { scan-assembler-times {\mvslb\M} 3 } } */
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] PR 102935, Fix pr101384-1.c code generation test.
2022-01-11 17:06 ` Bill Schmidt
@ 2022-01-11 18:23 ` David Edelsohn
0 siblings, 0 replies; 3+ messages in thread
From: David Edelsohn @ 2022-01-11 18:23 UTC (permalink / raw)
To: Bill Schmidt, Michael Meissner
Cc: GCC Patches, Segher Boessenkool, Peter Bergner, Will Schmidt
On Tue, Jan 11, 2022 at 12:06 PM Bill Schmidt <wschmidt@linux.ibm.com> wrote:
>
> Hi Mike,
>
> This looks fine to me. Maintainers?
Okay.
Thanks, David
>
> Thanks,
> Bill
>
> On 1/7/22 6:33 PM, Michael Meissner wrote:
> > Fix pr101384-1.c code generation test.
> >
> > Add support for the compiler using XXSPLTIB reg,255 to load all 1's into a
> > register on power9 and above instead of using VSPLTI{B,H,W} reg,-1.
> >
> > gcc/testsuite/
> > 2022-01-07 Michael Meissner <meissner@the-meissners.org>
> >
> > PR testsuite/102935
> > * gcc.target/powerpc/pr101384-1.c: Update insn regexp for power9
> > and power10.
> > ---
> > gcc/testsuite/gcc.target/powerpc/pr101384-1.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/gcc/testsuite/gcc.target/powerpc/pr101384-1.c b/gcc/testsuite/gcc.target/powerpc/pr101384-1.c
> > index 627d7d76721..41cf84bf8bc 100644
> > --- a/gcc/testsuite/gcc.target/powerpc/pr101384-1.c
> > +++ b/gcc/testsuite/gcc.target/powerpc/pr101384-1.c
> > @@ -2,7 +2,7 @@
> > /* { dg-do compile { target le } } */
> > /* { dg-options "-O2 -maltivec" } */
> > /* { dg-require-effective-target powerpc_altivec_ok } */
> > -/* { dg-final { scan-assembler-times {\mvspltis[whb] [^\n\r]*,-1\M} 9 } } */
> > +/* { dg-final { scan-assembler-times {\mvspltis[whb] [^\n\r]*,-1\M|\mxxspltib[^\n\r]*,255\M} 9 } } */
> > /* { dg-final { scan-assembler-times {\mvslw\M} 3 } } */
> > /* { dg-final { scan-assembler-times {\mvslh\M} 3 } } */
> > /* { dg-final { scan-assembler-times {\mvslb\M} 3 } } */
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-11 18:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-08 0:33 [PATCH] PR 102935, Fix pr101384-1.c code generation test Michael Meissner
2022-01-11 17:06 ` Bill Schmidt
2022-01-11 18:23 ` David Edelsohn
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).