1 /* PR target/82975.  */
2 /* { dg-do compile } */
3 /* { dg-options "-fno-sched-pressure -O2" } */
4 /* { dg-additional-options "-mtune=cortex-a57" { target arm*-*-* aarch64*-*-* } } */
5 
6 typedef __SIZE_TYPE__ size_t;
7 
8 struct S1
9 {
10   char pad1;
11   char val;
12   short pad2;
13 };
14 
15 extern char t[256];
16 
foo(struct S1 a,size_t i)17 void foo (struct S1 a, size_t i)
18 {
19   t[i] = a.val;
20 }
21