This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, rs6000] fix PR86952 (p8-vec-xl-*.c tests)
- From: Will Schmidt <will_schmidt at vnet dot ibm dot com>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>, Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>, David Edelsohn <dje dot gcc at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 07 Sep 2018 16:27:34 -0500
- Subject: [PATCH, rs6000] fix PR86952 (p8-vec-xl-*.c tests)
- Reply-to: will_schmidt at vnet dot ibm dot com
Hi,
The expected instructions for this test (p8-vec-xl-*) were incorrect for some
of the power targets. Add codegen variations as appropriate for
the targeted platform.
Tested across power platforms. This appears to now run clean.
OK for trunk?
Thanks
-Will
[testsuite]
2018-09-06 Will Schmidt <will_schmidt@vnet.ibm.com>
pr86952/testsuite
* p8-vec-xl-xst-v2.c: Add and update expected codegen.
diff --git a/gcc/testsuite/gcc.target/powerpc/p8-vec-xl-xst-v2.c b/gcc/testsuite/gcc.target/powerpc/p8-vec-xl-xst-v2.c
index cc68ceb..7327af7 100644
--- a/gcc/testsuite/gcc.target/powerpc/p8-vec-xl-xst-v2.c
+++ b/gcc/testsuite/gcc.target/powerpc/p8-vec-xl-xst-v2.c
@@ -57,8 +57,7 @@ void
bartle (vector unsigned short x, unsigned short * address)
{
vec_xst (x, 0, address);
}
-/* { dg-final { scan-assembler-times "lvx" 4 } } */
-/* { dg-final { scan-assembler-times "stvx" 4 } } */
-/* { dg-final { scan-assembler-times "xxpermdi" 0 } } */
+/* { dg-final { scan-assembler-times {\mlvx\M|\mlxvd2x\M} 4 } } */
+/* { dg-final { scan-assembler-times {\mstvx\M|\mstxvd2x\M} 4 } } */