* name-lookup.h (lookup_field_1): Delete.
[official-gcc.git] / gcc / testsuite / gcc.target / sh / pr50749-qihisi-predec-3.c
blob541749750e0a5cc5c3a09e621610c86c9e682efb
1 /* PR target/50749: Verify that pre-decrement addressing is generated
2 inside a loop. */
3 /* { dg-do compile } */
4 /* { dg-options "-O2" } */
5 /* { dg-final { scan-assembler-times "mov.b\tr\[0-9]\+,@-r\[0-9]\+" 1 } } */
6 /* { dg-final { scan-assembler-times "mov.w\tr\[0-9]\+,@-r\[0-9]\+" 1 } } */
7 /* { dg-final { scan-assembler-times "mov.l\tr\[0-9]\+,@-r\[0-9]\+" 1 } } */
9 char*
10 test_func_00 (char* p, int c, int x)
14 *--p = (char)x;
15 } while (--c);
16 return p;
19 short*
20 test_func_01 (short* p, int c, int x)
24 *--p = (short)x;
25 } while (--c);
26 return p;
29 int*
30 test_func_02 (int* p, int c, int x)
34 *--p = x;
35 } while (--c);
36 return p;