2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr24178.c
blob1248c1b44c233ce912ec572c364bcc18b8d6a59d
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-rtl-expand" } */
4 struct S {
5 int l;
6 unsigned char c;
7 };
8 unsigned long f(unsigned char *p10) {
9 struct S *p = (struct S *) (p10 + 10);
10 return p->c;
13 /* The p->c memory access should have alignment of 4 bytes. */
15 /* { dg-final { scan-rtl-dump "MEM\[^\\n\]*A32" "expand" } } */