| 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 |
/* { dg-additional-options "-mno-vsx" { target { powerpc*-*-* && ilp32 } } } */ |
| 5 |
|
| 6 |
extern void abort (void); |
| 7 |
|
| 8 |
int |
| 9 |
main (int argc, char **argv) |
| 10 |
{ |
| 11 |
long a[4] = { 7, 19, 11, 255 }; |
| 12 |
int tot = 0; |
| 13 |
for (int i = 0; i < 4; i++) |
| 14 |
tot = (tot*256) + a[i]; |
| 15 |
if (tot == 0x07130bff) |
| 16 |
return 0; |
| 17 |
abort (); |
| 18 |
} |
| 19 |
|
| 20 |
/* { dg-final { scan-tree-dump-times "Removing load: a = \\\*.?L.?C.?.?.?0;" 1 "esra" { xfail hppa*64*-*-* } } } */ |
| 21 |
/* { dg-final { scan-tree-dump-times "SR\[.$\]\[0-9_\]+ = \\\*.?L.?C.?.?.?0\\\[" 4 "esra" { xfail hppa*64*-*-* } } } */ |