* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr78904-2.c
blob0cc4aaa91ea8be138980e0852e9bae05718babed
1 /* PR target/78904 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target nonpic } */
4 /* { dg-options "-O2 -masm=att" } */
6 struct S1
8 unsigned char pad1;
9 unsigned char val;
10 unsigned short pad2;
13 extern struct S1 t;
15 struct S1 test_and (struct S1 a)
17 a.val &= t.val;
19 return a;
22 /* { dg-final { scan-assembler "\[ \t\]andb\[ \t\]+t\[^\n\r]*, %.h" } } */
24 struct S1 test_or (struct S1 a)
26 a.val |= t.val;
28 return a;
31 /* { dg-final { scan-assembler "\[ \t\]orb\[ \t\]+t\[^\n\r]*, %.h" } } */
33 struct S1 test_xor (struct S1 a)
35 a.val ^= t.val;
37 return a;
40 /* { dg-final { scan-assembler "\[ \t\]xorb\[ \t\]+t\[^\n\r]*, %.h" } } */
42 struct S1 test_add (struct S1 a)
44 a.val += t.val;
46 return a;
49 /* { dg-final { scan-assembler "\[ \t\]addb\[ \t\]+t\[^\n\r]*, %.h" } } */