[llvm-commits] [PATCH][APFloat] add APFloat::isDenormal()

Shuxin Yang shuxin.llvm at gmail.com
Wed Jan 2 12:45:19 PST 2013


My following changes will include quite a few testing cases which 
disable fast-math optimization if constant-folding yields a denormal.
These testing cases covers the "test" hard-coded in this patch.

On 1/2/13 12:19 PM, Duncan Sands wrote:
> Hi Shuxin,
>
> >     The "test" is hard-coded in the InstCombineAddSub.cpp (this part 
> is not
>> going to be committed).
>> and the test is triggered by any *.ll having a fadd instruction.
>>
>>     The "test" covers the tricky cases about 
>> single/double/quadruple-precision
>> as well as Intel 80-bit
>> double-ext precision floating-point. I don't know how to test PPC FP. 
>> But I
>> don't think it is necessary
>> to test PPC FP as APFloat is a arch-neutral representations of all 
>> these formats.
>
> maybe turn it into a unit test (presumably in 
> unittests/ADT/APFloatTest.cpp)?
>
> Ciao, Duncan.
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list