* name-lookup.h (lookup_field_1): Delete.
[official-gcc.git] / gcc / testsuite / gcc.target / sh / pr52933-3.c
blob1b563fe808788f21cc10eb04bd5137118731225a
1 /* Check that the div0s instruction is used for integer sign comparisons. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4 /* { dg-final { scan-assembler-times "div0s" 2 } } */
6 typedef struct { unsigned int arg[100]; } *FunctionCallInfo;
7 typedef struct { int day; int month; } Interval;
8 void* palloc (unsigned int);
9 int bar (void);
10 void baz (void);
12 void
13 interval_pl (FunctionCallInfo fcinfo)
15 Interval *span1 = ((Interval *) ((char *) ((fcinfo->arg[0]))));
16 Interval *span2 = ((Interval *) ((char *) ((fcinfo->arg[1]))));
17 Interval *result = (Interval *) palloc (sizeof (Interval));
19 /* Should emit 2x div0s. */
20 if ((((span1->month) < 0) == ((span2->month) < 0))
21 && !(((result->month) < 0) == ((span1->month) < 0)))
22 do {
23 if (bar ())
24 baz ();
25 } while(0);
26 result->day = span1->day + span2->day;