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. 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. */