1 /* { dg-do run { target { aarch64*-*-* alpha*-*-* arm*-*-* hppa*-*-* powerpc*-*-* s390*-*-* } } } */
2 /* { dg-options "-O2 -fdump-tree-esra --param sra-max-scalarization-size-Ospeed=32" } */
3 /* { dg-additional-options "-mcpu=ev4" { target alpha*-*-* } } */
4 
5 extern void abort (void);
6 
7 int
main(int argc,char ** argv)8 main (int argc, char **argv)
9 {
10   long a[4] = { 7, 19, 11, 255 };
11   int tot = 0;
12   for (int i = 0; i < 4; i++)
13     tot = (tot*256) + a[i];
14   if (tot == 0x07130bff)
15     return 0;
16   abort ();
17 }
18 
19 /* { dg-final { scan-tree-dump-times "Removing load: a = \\\*.?L.?C.?.?.?0;" 1 "esra" } } */
20 /* { dg-final { scan-tree-dump-times "SR\\.\[0-9_\]+ = \\\*.?L.?C.?.?.?0\\\[" 4 "esra" } } */
21