[AArch64] Merge stores of D-register values with different modes
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr62312.c
blob2e87bb9bd9389f381d805804d05724f2a23a8cb6
1 /* PR target/62312 */
3 typedef struct { unsigned int arg[100]; } *FunctionCallInfo;
4 typedef struct { int day; int month; } Interval;
5 void* palloc (unsigned int);
6 int bar (void);
7 void baz (void);
9 void
10 interval_pl (FunctionCallInfo fcinfo)
12 Interval *span1 = ((Interval *) ((char *) ((fcinfo->arg[0]))));
13 Interval *span2 = ((Interval *) ((char *) ((fcinfo->arg[1]))));
14 Interval *result = (Interval *) palloc (sizeof (Interval));
16 if ((((span1->month) < 0) == ((span2->month) < 0))
17 && !(((result->month) < 0) == ((span1->month) < 0)))
18 do {
19 if (bar ())
20 baz ();
21 } while(0);
22 result->day = span1->day + span2->day;