2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr78967-2.c
blobd6f445b2889f905d5f755968cb8e4e0fb0abe280
1 /* PR target/78967 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -masm=att" } */
4 /* { dg-require-effective-target nonpic } */
5 /* { dg-final { scan-assembler-not "movzbl" } } */
7 typedef __SIZE_TYPE__ size_t;
9 struct S1
11 unsigned char pad1;
12 unsigned char val;
13 unsigned short pad2;
16 extern unsigned char t[256];
18 struct S1 foo (struct S1 a, size_t i)
20 a.val = t[i];
22 return a;
25 /* { dg-final { scan-assembler "\[ \t\]movb\[ \t\]+t\[^\n\r]*, %.h" } } */