From: Vladimir Makarov Date: Fri, 23 Nov 2018 21:42:52 +0000 (+0000) Subject: pr70669.c: Use unary minus instead of addition. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b8ccb9d55e862b40d978207ee4b44db914acd91;p=gcc.git 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 --- 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" } } */