This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, rs6000] Fix PR86592 (p8-vec-xl-xst-v2.c)
- 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: Tue, 18 Sep 2018 15:34:25 -0500
- Subject: [PATCH, rs6000] Fix PR86592 (p8-vec-xl-xst-v2.c)
- Reply-to: will_schmidt at vnet dot ibm dot com
Hi,
The expected codegen for this testcase with target {le} and
option -mcpu=power8 is lxvd2x and stxvd2x. It was initially
committed with contents as seen on builds for P7, which was
incorrect. Update as is appropriate.
[testsuite]
2018-09-18 Will Schmidt <will_schmidt@vnet.ibm.com>
PR testsuite/86592
* 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..6f48d72 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 {\mlxvd2x\M} 4 } } */
+/* { dg-final { scan-assembler-times {\mstxvd2x\M} 4 } } */