From 1b8ccb9d55e862b40d978207ee4b44db914acd91 Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Fri, 23 Nov 2018 21:42:52 +0000 Subject: [PATCH] pr70669.c: Use unary minus instead of addition. 2018-11-23 Vladimir Makarov * gcc.target/powerpc/pr70669.c: Use unary minus instead of addition. From-SVN: r266421 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/powerpc/pr70669.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 982d89d13c2..e31d40d7924 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-11-23 Vladimir Makarov + + * gcc.target/powerpc/pr70669.c: Use unary minus instead of + addition. + 2018-11-23 Jakub Jelinek PR tree-optimization/87756 diff --git a/gcc/testsuite/gcc.target/powerpc/pr70669.c b/gcc/testsuite/gcc.target/powerpc/pr70669.c index 8692d7f71ef..106ad9f0ab7 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr70669.c +++ b/gcc/testsuite/gcc.target/powerpc/pr70669.c @@ -13,7 +13,7 @@ void foo (TYPE *p, TYPE *q) #ifndef NO_ASM __asm__ (" # %0" : "+r" (r)); #endif - *p = r + r; + *p = -r; } /* { dg-final { scan-assembler "mfvsrd" } } */ -- 2.30.2