Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gcc.target / sh / pr50749-sf-postinc-1.c
blob41e3bdd28349a3bd77afd6f1cd7c1b047d3e13c2
1 /* PR target/50749: Verify that post-increment addressing is generated. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4 /* { dg-skip-if "" { "sh*-*-*" } { "-m1" "-m2" "-m3" "-m4al" "*nofpu" "-m4-340*" "-m4-400*" "-m4-500*" "-m5*" } { "" } } */
5 /* { dg-final { scan-assembler-times "fmov.s\t@r\[0-9]\+\\+,fr\[0-9]\+" 1 } } */
7 float*
8 test_func_00 (float* p, float* x)
10 float r = 0;
11 r += *p++;
12 *x = r;
13 return p;