On 11/09/16 17:52, Joseph Myers wrote:
> On Wed, 9 Nov 2016, James Greenhalgh wrote:
>
>> These new test cases look like they are going to be out of exponent range
>> for _Float16 - so the testcases will fail for a target which tests either
>> of:
>>
>>   gcc.dg/torture/fp-int-convert-float16.c
>>   gcc.dg/torture/fp-int-convert-float16-timode.c
>>
>> Should they have an M_OK1 check?
>
> Yes.
>

Yes, but maybe introduce a test if the half-wide value fits?

like:

#define M_OK2(M, T) ((M) > sizeof(T) * CHAR_BIT / 2 - 1)


Bernd.

Reply via email to