From 03a71208880e60f6d9c51423a50d9de9ae26d700 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Sun, 1 Mar 2020 11:13:18 -0700 Subject: [PATCH] Fix test for pr88233. PR testsuite/91799 * gcc.target/powerpc/pr88233.c: Update expected output and add target selector. --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/powerpc/pr88233.c | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 35b1a3c..65fb413 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-03-01 Segher Boessenkool + + PR testsuite/91799 + * gcc.target/powerpc/pr88233.c: Update expected output and + add target selector. + 2020-03-01 Iain Sandoe * g++.dg/coroutines/torture/class-07-data-member.C: New test. diff --git a/gcc/testsuite/gcc.target/powerpc/pr88233.c b/gcc/testsuite/gcc.target/powerpc/pr88233.c index c16235e..8e5f15b 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr88233.c +++ b/gcc/testsuite/gcc.target/powerpc/pr88233.c @@ -1,5 +1,5 @@ /* { dg-do compile { target lp64 } } */ -/* { dg-options "-O2 -mcpu=power8" } */ +/* { dg-options "-O2 -mdejagnu-cpu=power8" } */ typedef struct { double a[2]; } A; A @@ -9,5 +9,6 @@ foo (const A *a) } /* { dg-final { scan-assembler-not {\mmtvsr} } } */ -/* { dg-final { scan-assembler-times {\mlxvd2x\M} 1 } } */ -/* { dg-final { scan-assembler-times {\mstxvd2x\M} 1 } } */ +/* { dg-final { scan-assembler-times {\mlxvd2x\M} 1 { target { be } } } } */ +/* { dg-final { scan-assembler-times {\mstxvd2x\M} 1 { target { be } } } } */ +/* { dg-final { scan-assembler-times {\mlfd\M} 2 { target { le } } } } */ -- 2.7.4