RISC-V: Support IMM for operand 0 of ussub pattern
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20030914-1.c
blob0b3ccfd73a1398cf9432cf7f4b699ace8c927d00
1 /* On IRIX 6, PB is passed partially in registers and partially on the
2 stack, with an odd number of words in the register part. Check that
3 the long double stack argument (PC) is still accessed properly. */
5 void abort (void);
6 void exit (int);
8 struct s { int val[16]; };
10 long double f (int pa, struct s pb, long double pc)
12 int i;
14 for (i = 0; i < 16; i++)
15 pc += pb.val[i];
16 return pc;
19 int main ()
21 struct s x;
22 int i;
24 for (i = 0; i < 16; i++)
25 x.val[i] = i + 1;
26 if (f (1, x, 10000.0L) != 10136.0L)
27 abort ();
28 exit (0);