summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/pr71727.c
blob: 05eef3e91919289e224cebc0d9bee77a3edd1324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* { dg-do compile } */
/* { dg-options "-mstrict-align -O3" } */

struct test_struct_s
{
  long a;
  long b;
  long c;
  long d;
  unsigned long e;
};


char _a;
struct test_struct_s xarray[128];

void
_start (void)
{
  struct test_struct_s *new_entry;

  new_entry = &xarray[0];
  new_entry->a = 1;
  new_entry->b = 2;
  new_entry->c = 3;
  new_entry->d = 4;
  new_entry->e = 5;

  return;
}

/* { dg-final { scan-assembler-times "mov\tx" 5 {target lp64} } } */
/* { dg-final { scan-assembler-not "add\tx0, x0, :" {target lp64} } } */