pr70669.c: Use unary minus instead of addition.
authorVladimir Makarov <vmakarov@redhat.com>
Fri, 23 Nov 2018 21:42:52 +0000 (21:42 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Fri, 23 Nov 2018 21:42:52 +0000 (21:42 +0000)
2018-11-23  Vladimir Makarov  <vmakarov@redhat.com>

* gcc.target/powerpc/pr70669.c: Use unary minus instead of
addition.

From-SVN: r266421

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr70669.c

index 982d89d13c26c6cede76e7750ce09f7869106f1a..e31d40d7924fcecd62a24a22519033f472ab97ff 100644 (file)
@@ -1,3 +1,8 @@
+2018-11-23  Vladimir Makarov  <vmakarov@redhat.com>
+
+       * gcc.target/powerpc/pr70669.c: Use unary minus instead of
+       addition.
+
 2018-11-23  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/87756
index 8692d7f71efe84cc5efedbfe9aa6c4d6cd704956..106ad9f0ab770e9b7f6b46c812b4351c71c65f42 100644 (file)
@@ -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"    } } */