RISC-V: Bugfix vfmv insn honor zvfhmin for FP16 SEW [PR115763]
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 960317-1.c
blobc65d0364b6596c702ee5c9cc6d071b674184167c
1 void abort (void);
2 void exit (int);
4 int
5 f (unsigned bitcount, int mant)
7 int mask = -1 << bitcount;
9 if (! (mant & -mask))
10 goto ab;
11 if (mant & ~mask)
12 goto auf;
14 ab:
15 return 0;
16 auf:
17 return 1;
20 int
21 main (void)
23 if (f (0, -1))
24 abort ();
25 exit (0);