| 1 |
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -save-temps -fverbose-asm" } */ |
| 2 |
/* { dg-skip-if "" { *-*-* } { "-O0" "O1" "-Og" "-Os" "-Oz" } } */ |
| 3 |
|
| 4 |
/* Reduced from SPEC2017 Cactu ML_BSSN_Advect.cpp |
| 5 |
by comparing -fschedule-insn and -fno-schedule-insns builds. |
| 6 |
Shows up one extra spill (pair of spill markers "sfp") in verbose asm |
| 7 |
output which the patch fixes. */ |
| 8 |
|
| 9 |
void s(); |
| 10 |
double b, c, d, e, f, g, h, k, l, m, n, o, p, q, t, u, v; |
| 11 |
int *j; |
| 12 |
double *r, *w; |
| 13 |
long x; |
| 14 |
void y() { |
| 15 |
double *a((double *)s); |
| 16 |
for (;;) |
| 17 |
for (; j[1];) |
| 18 |
for (int i = 1; i < j[0]; i++) { |
| 19 |
k = l; |
| 20 |
m = n; |
| 21 |
o = p = q; |
| 22 |
r[0] = t; |
| 23 |
a[0] = u; |
| 24 |
x = g; |
| 25 |
e = f; |
| 26 |
v = w[x]; |
| 27 |
b = c; |
| 28 |
d = h; |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
/* { dg-final { scan-assembler-not "%sfp" } } */ |