aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/hiconst.c
blob: d8911a52d78cf1a5005c42f89a6e45d59d1d2d14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */
/* { dg-options "-O1" } */

char a;
int b;

int
foo (char *pt, int *pti)
{
  a = 0;
  b = 0;
  *pt = 0;
  *pti = 0;
}

int rab (char *pt, int *pti)
{
  pt[2] = 0;
  pti[3] = 0;
}

/* { dg-final { scan-assembler-times "mov\t#0" 2 } } */