Fix bogus store_merging_x.c failures for avr.
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Tue, 8 Nov 2016 06:30:31 +0000 (06:30 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Tue, 8 Nov 2016 06:30:31 +0000 (06:30 +0000)
commit06658c6d05b360dfb85b173d67975603d5e960f3
tree1ce44e8ba76b8df2b77bf762ad455f78f96fd2ba
parente525d6110b1f2bef005f41130187c7252213d5c2
Fix bogus store_merging_x.c failures for avr.

Store merging isn't profitable for the avr. Add a new
effective target keyword "store_merge", and turn it on
only if non_strict_align *and* int32plus, as targets with
smallish word sizes are unlikely to profit from this optimization.

gcc/testsuite/ChangeLog

2016-11-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

* gcc.dg/store_merging_1.c: Require store_merge.
* gcc.dg/store_merging_2.c: Likewise.
* gcc.dg/store_merging_4.c: Likewise.
* gcc.dg/store_merging_5.c: Likewise.
* gcc.dg/store_merging_6.c: Likewise.
* gcc.dg/store_merging_7.c: Likewise.
* gcc.dg/store_merging_8.c: Likewise.
* lib/target-supports.exp (check_effective_target_store_merge): New.

From-SVN: r241953
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/store_merging_1.c
gcc/testsuite/gcc.dg/store_merging_2.c
gcc/testsuite/gcc.dg/store_merging_4.c
gcc/testsuite/gcc.dg/store_merging_5.c
gcc/testsuite/gcc.dg/store_merging_6.c
gcc/testsuite/gcc.dg/store_merging_7.c
gcc/testsuite/gcc.dg/store_merging_8.c
gcc/testsuite/lib/target-supports.exp