blob: cd4784913e473f8613fb4dee3d758814695800bb [file] [log] [blame]
/* { dg-options "-Os -march=rv64imc -mabi=lp64" } */
/* These stores cannot be compressed because x0 is not a compressed reg.
Therefore the shorten_memrefs pass should not attempt to rewrite them into a
compressible format. */
void
store1z (int *array)
{
array[200] = 0;
array[201] = 0;
array[202] = 0;
array[203] = 0;
}
void
store2z (long long *array)
{
array[200] = 0;
array[201] = 0;
array[202] = 0;
array[203] = 0;
}
/* { dg-final { scan-assembler-not "store1z:\n\taddi" } } */
/* { dg-final { scan-assembler-not "store2z:\n\taddi" } } */