| 1 |
/* PR target/50749: Verify that subsequent post-increment addressings |
| 2 |
are generated. */ |
| 3 |
/* { dg-do compile { target { any_fpu } } } */ |
| 4 |
/* { dg-options "-O2" } */ |
| 5 |
/* { dg-final { scan-assembler-times "fmov.s\t@r\[0-9]\+\\+,fr\[0-9]\+" 5 { xfail *-*-*} } } */ |
| 6 |
|
| 7 |
float* |
| 8 |
test_func_00 (float* p, float* x) |
| 9 |
{ |
| 10 |
float r = 0; |
| 11 |
r += *p++; |
| 12 |
r += *p++; |
| 13 |
*x = r; |
| 14 |
return p; |
| 15 |
} |
| 16 |
|
| 17 |
float* |
| 18 |
test_func_01 (float* p, float* x) |
| 19 |
{ |
| 20 |
float r = 0; |
| 21 |
r += *p++; |
| 22 |
r += *p++; |
| 23 |
r += *p++; |
| 24 |
*x = r; |
| 25 |
return p; |
| 26 |
} |