blob: 6ed3254a089b0f8363f0a9d3bd73b47e878cf3ee [file] [log] [blame]
/* PR target/50749: Verify that pre-decrement addressing is generated
inside a loop. */
/* { dg-do compile { target { any_fpu } } } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-times "fmov.s\tfr\[0-9]\+,@-r\[0-9]\+" 1 } } */
float*
test_func_00 (float* p, int c, float x)
{
do
{
*--p = x;
} while (--c);
return p;
}