| 1 |
/* { dg-options "-march=rv64imc -mabi=lp64" } */ |
| 2 |
/* { dg-skip-if "" { *-*-* } { "-O0" "-g" } } */ |
| 3 |
|
| 4 |
/* These stores cannot be compressed because x0 is not a compressed reg. |
| 5 |
Therefore the shorten_memrefs pass should not attempt to rewrite them into a |
| 6 |
compressible format. */ |
| 7 |
|
| 8 |
void |
| 9 |
store1z (int *array) |
| 10 |
{ |
| 11 |
array[200] = 0; |
| 12 |
array[201] = 0; |
| 13 |
array[202] = 0; |
| 14 |
array[203] = 0; |
| 15 |
} |
| 16 |
|
| 17 |
void |
| 18 |
store2z (long long *array) |
| 19 |
{ |
| 20 |
array[200] = 0; |
| 21 |
array[201] = 0; |
| 22 |
array[202] = 0; |
| 23 |
array[203] = 0; |
| 24 |
} |
| 25 |
|
| 26 |
/* { dg-final { scan-assembler-not "store1z:\n(\t?\\.\[^\n\]*\n)\taddi" } } */ |
| 27 |
/* { dg-final { scan-assembler-not "store2z:\n(\t?\\.\[^\n\]*\n)\taddi" } } */ |