blob: 81a24d4f48118db9e20b076801eebfc2248032b6 [file] [log] [blame]
/* Check that loads/stores from/to volatile floating point mems utilize
indexed addressing modes. */
/* { dg-do compile { target { any_fpu } } } */
/* { dg-options "-O1" } */
/* { dg-final { scan-assembler-times "@\\(r0," 2 } } */
float
test_00 (volatile float* x, unsigned int y)
{
return x[y];
}
void
test_100 (volatile float* x, unsigned int y, float z)
{
x[y] = z;
}