2014-10-24 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / testsuite / gcc.target / sh / hiconst.c
blob778bb8a3d2eeb932a6943c9a20679308af0550fc
1 /* { dg-do compile { target "sh*-*-*" } } */
2 /* { dg-options "-O1" } */
4 char a;
5 int b;
7 int
8 foo (char *pt, int *pti)
10 a = 0;
11 b = 0;
12 *pt = 0;
13 *pti = 0;
16 int rab (char *pt, int *pti)
18 pt[2] = 0;
19 pti[3] = 0;
22 /* { dg-final { scan-assembler-times "mov\t#0" 2 } } */