2 /* { dg-options "-O2 -fmodulo-sched -fmodulo-sched-allow-regmoves -funroll-loops -fdump-rtl-sms --param sms-min-sc=1" } */
3 /* This is the same test as loop-2e.c test. It is related to a fix in
4 the generation of the prolog and epilog. */
6 extern void abort (void);
8 __attribute__ ((noinline
))
9 void f (int *p
, int **q
)
12 for (i
= 0; i
< 40; i
++)
24 /* Find the signed middle of the address space. */
25 if (sizeof(start
) == sizeof(int))
26 start
= (__SIZE_TYPE__
) __INT_MAX__
;
27 else if (sizeof(start
) == sizeof(long))
28 start
= (__SIZE_TYPE__
) __LONG_MAX__
;
29 else if (sizeof(start
) == sizeof(long long))
30 start
= (__SIZE_TYPE__
) __LONG_LONG_MAX__
;
34 /* Arbitrarily align the pointer. */
37 /* Pretend that's good enough to start address arithmetic. */
40 /* Verify that GIV replacement computes the correct results. */
43 if (q
[39] != (int *)p
+ 39)
49 /* { dg-final { scan-rtl-dump-times "SMS succeeded" 1 "sms" { target spu-*-* } } } */