* gcc.dg/tree-ssa/loop-1.c: Use -msmall-exec on s390-*-* targets.
authorUlrich Weigand <uweigand@de.ibm.com>
Sun, 26 Sep 2004 22:31:26 +0000 (22:31 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Sun, 26 Sep 2004 22:31:26 +0000 (22:31 +0000)
From-SVN: r88151

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/loop-1.c

index 37c6b2736f34991720fd9022acb7ab518f1b2f91..da84e65a5bee55a42cf7bcb11962cdcca7e702bc 100644 (file)
@@ -1,3 +1,7 @@
+2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * gcc.dg/tree-ssa/loop-1.c: Use -msmall-exec on s390-*-* targets.
+
 2004-09-26  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
 
        PR fortran/15164
index 43cf01beccece284658dfa9379465563c27cbe87..759a9798321e08e84a8a269f1adee7b83b8e6225 100644 (file)
@@ -1,6 +1,11 @@
 /* { dg-do compile } */
 /* { dg-options "-O1 -ftree-loop-ivcanon -funroll-loops -fdump-tree-ivcanon-details" } */
 
+/* On 31-bit S/390 the function address will be stored (once) in the literal pool,
+   so scan-assembler-times "foo" will return 1 even if the loop is fully unrolled.
+   -msmall-exec avoids this by enabling a call instruction with immediate operand.  */
+/* { dg-options "-O1 -ftree-loop-ivcanon -funroll-loops -fdump-tree-ivcanon-details -msmall-exec" { target s390-*-* } } */
+
 void xxx(void)
 {
   int x = 45;