2 /* { dg-require-effective-target size32plus } */
3 /* { dg-options "-O2 -fmodulo-sched -fdump-rtl-sms --param sms-min-sc=1" } */
4 /* { dg-options "-O2 -fmodulo-sched -fdump-rtl-sms --param sms-min-sc=1 -fmodulo-sched-allow-regmoves" { target powerpc*-*-* } } */
6 extern void abort (void);
8 __attribute__ ((noinline
))
9 void foo (int * __restrict__ a
, int * __restrict__ b
, int * __restrict__ c
)
12 for(i
= 0; i
< 100; i
+=4)
15 a
[i
+1] = b
[i
+1] * c
[i
+1];
16 a
[i
+2] = b
[i
+2] * c
[i
+2];
17 a
[i
+3] = b
[i
+3] * c
[i
+3];
21 int a
[100], b
[100], c
[100];
28 for(i
= 0; i
< 100; i
++)
35 for(i
= 0; i
< 100; i
++)
45 /* { dg-final { scan-rtl-dump-times "SMS succeeded" 1 "sms" { target spu-*-* } } } */
46 /* { dg-final { scan-rtl-dump-times "SMS succeeded" 3 "sms" { target powerpc*-*-* } } } */
47 /* { dg-final { cleanup-rtl-dump "sms" } } */