Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mod-1.c
bloba7b1a92258de352175bf3b6b0d4f353a847eddfe
1 /* { dg-do compile } */
2 /* { dg-options "-Os -mtune=generic" } */
4 typedef struct {
5 int a;
6 } VCR;
8 typedef struct {
9 VCR vcr[8];
10 } VCRC;
12 typedef struct {
13 char vcr;
14 } OWN;
16 OWN Own[16];
18 void
19 f (VCRC *x, OWN *own)
21 x[own->vcr / 8].vcr[own->vcr % 8].a--;
22 x[own->vcr / 8].vcr[own->vcr % 8].a = x[own->vcr / 8].vcr[own->vcr % 8].a;
25 /* { dg-final { scan-assembler-times "idivb" 1 } } */
26 /* { dg-final { scan-assembler-not "incl" } } */
27 /* { dg-final { scan-assembler-not "orl" } } */
28 /* { dg-final { scan-assembler-not "andb" } } */
29 /* { dg-final { scan-assembler-not "jns" } } */