From f9c29a5b578a6c3e19cdf57c0d6d9194e3dd2e1c Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 8 Jul 2015 16:34:52 -0600 Subject: [PATCH] re PR testsuite/66796 (FAIL: gcc.target/hppa/shadd-1.c scan-assembler-times sh.add 1) PR testsuite/66796 * gcc.target/hppa/shadd-1.c: Avoid the read-modify-write so as to have a single memory reference. From-SVN: r225586 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/hppa/shadd-1.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d2d51ae0ac5..37f3724a527 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-07-08 Jeff Law + + PR testsuite/66796 + * gcc.target/hppa/shadd-1.c: Avoid the read-modify-write so as + to have a single memory reference. + 2015-07-08 Eric Botcazou * g++.dg/other/dump-ada-spec-9.C: New test. diff --git a/gcc/testsuite/gcc.target/hppa/shadd-1.c b/gcc/testsuite/gcc.target/hppa/shadd-1.c index de4776bc5b0..55115b4d506 100644 --- a/gcc/testsuite/gcc.target/hppa/shadd-1.c +++ b/gcc/testsuite/gcc.target/hppa/shadd-1.c @@ -12,5 +12,5 @@ __sigaddset (__sigset_t * __set, int __sig, int __stuff) { unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); - return __set->__val[__word] |= __stuff; + return __set->__val[__word] = __stuff; } -- 2.30.2