On 07/08/17 14:59, Wilco Dijkstra wrote: > Build only if pre-increment is supported. Given there is no config test, > add a list of targets which have HAVE_PRE_INCREMENT set. > > Committed as obvious. >
Except that I think this would be better done as an 'effective target' test; something like dg-require-effective-target autoincdec that way new ports will be more likely to pick up relevant tests like this. R. > 2017-08-07 Wilco Dijkstra <wdijk...@arm.com> > > PR middle-end/46932 > * gcc.dg/pr46932.c: Compile on targets with pre-increment. > -- > > diff --git a/gcc/testsuite/gcc.dg/pr46932.c b/gcc/testsuite/gcc.dg/pr46932.c > index > b96febcc095fbec2cc4e02d1155871220d17cc99..4eb1a99e1bd9403f8b1c5d0d71ef731ad4a65128 > 100644 > --- a/gcc/testsuite/gcc.dg/pr46932.c > +++ b/gcc/testsuite/gcc.dg/pr46932.c > @@ -1,5 +1,8 @@ > /* { dg-options "-O2 -fdump-rtl-auto_inc_dec" } */ > > +/* Build on targets which have pre increment. */ > +/* { dg-do compile { target aarch64*-*-* arm*-*-* rs6000-*-* powerpc*-*-* > arc*-*-* m32r-*-* tic6x-*-* } } */ > + > /* Check that accesses based on the frame pointer do not > use auto increment. */ >