* gcc.dg/tree-ssa/loop-1.c: Use -msmall-exec on s390-*-* targets.
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 26 Sep 2004 22:31:26 +0000 (22:31 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 26 Sep 2004 22:31:26 +0000 (22:31 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88151 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 37c6b27..da84e65 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 43cf01b..759a979 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;