From c39f02efe758e3e7364daf7b9286f80b422c8e81 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Wed, 28 Oct 2015 05:33:03 +0100 Subject: [PATCH] rs6000: Fix tests for xvmadd and xvnmsub The patterns involved can create vmadd resp. vnmsub instructions instead. This patch changes the testcases to allow those. 2015-10-26 Segher Boessenkool gcc/testsuite/ * gcc.target/powerpc/vsx-builtin-2.c: Allow vmadd and vnmsub as well as xvmadd and xvnmsub. * gcc.target/powerpc/vsx-vector-2.c: Allow vmadd as well as xvmadd. From-SVN: r229473 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/powerpc/vsx-builtin-2.c | 4 ++-- gcc/testsuite/gcc.target/powerpc/vsx-vector-2.c | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0eec83b596a..4bb5b3059ec 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-10-28 Segher Boessenkool + + * gcc.target/powerpc/vsx-builtin-2.c: Allow vmadd and vnmsub as well + as xvmadd and xvnmsub. + * gcc.target/powerpc/vsx-vector-2.c: Allow vmadd as well as xvmadd. + 2015-10-27 Cesar Philippidis * c-c++-common/goacc/loop-shape.c: New test. diff --git a/gcc/testsuite/gcc.target/powerpc/vsx-builtin-2.c b/gcc/testsuite/gcc.target/powerpc/vsx-builtin-2.c index d5d1e2de3fc..7b5ad7df30e 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsx-builtin-2.c +++ b/gcc/testsuite/gcc.target/powerpc/vsx-builtin-2.c @@ -6,10 +6,10 @@ /* { dg-final { scan-assembler "xvaddsp" } } */ /* { dg-final { scan-assembler "xvsubsp" } } */ /* { dg-final { scan-assembler "xvmulsp" } } */ -/* { dg-final { scan-assembler "xvmadd" } } */ +/* { dg-final { scan-assembler "vmadd" } } */ /* { dg-final { scan-assembler "xvmsub" } } */ /* { dg-final { scan-assembler "xvnmadd" } } */ -/* { dg-final { scan-assembler "xvnmsub" } } */ +/* { dg-final { scan-assembler "vnmsub" } } */ /* { dg-final { scan-assembler "xvdivsp" } } */ /* { dg-final { scan-assembler "xvmaxsp" } } */ /* { dg-final { scan-assembler "xvminsp" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vsx-vector-2.c b/gcc/testsuite/gcc.target/powerpc/vsx-vector-2.c index db3aa38e633..34dbd57a29c 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsx-vector-2.c +++ b/gcc/testsuite/gcc.target/powerpc/vsx-vector-2.c @@ -7,7 +7,7 @@ /* { dg-final { scan-assembler "xvsubsp" } } */ /* { dg-final { scan-assembler "xvmulsp" } } */ /* { dg-final { scan-assembler "xvdivsp" } } */ -/* { dg-final { scan-assembler "xvmadd" } } */ +/* { dg-final { scan-assembler "vmadd" } } */ /* { dg-final { scan-assembler "xvmsub" } } */ /* { dg-final { scan-assembler "xvsqrtsp" } } */ /* { dg-final { scan-assembler "xvcpsgnsp" } } */ -- 2.30.2