[llvm-commits] [llvm] r86651 - /llvm/trunk/lib/Target/Mips/MipsInstrFPU.td

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Wed Nov 11 13:47:30 PST 2009


Hi Chris,

On Tue, Nov 10, 2009 at 3:16 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On Nov 9, 2009, at 6:35 PM, Bruno Cardoso Lopes wrote:
>
>> Author: bruno
>> Date: Mon Nov  9 20:35:13 2009
>> New Revision: 86651
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=86651&view=rev
>> Log:
>> Fix PR5445
>
> Hey Bruno,
>
> FYI -0.0 is not the same as 0.0.

Yep, I forgot that, I'll do the right IEEE 754 solution, thanks! :)

> -Chris
>
>>
>> Modified:
>>   llvm/trunk/lib/Target/Mips/MipsInstrFPU.td
>>
>> Modified: llvm/trunk/lib/Target/Mips/MipsInstrFPU.td
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsInstrFPU.td?rev=86651&r1=86650&r2=86651&view=diff
>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> ======================================================================
>> --- llvm/trunk/lib/Target/Mips/MipsInstrFPU.td (original)
>> +++ llvm/trunk/lib/Target/Mips/MipsInstrFPU.td Mon Nov  9 20:35:13 2009
>> @@ -281,7 +281,7 @@
>> // Floating Point Patterns
>> //===----------------------------------------------------------------------===//
>> def fpimm0 : PatLeaf<(fpimm), [{
>> -  return N->isExactlyValue(+0.0);
>> +  return N->isExactlyValue(+0.0) || N->isExactlyValue(-0.0);
>> }]>;
>>
>> def : Pat<(f32 fpimm0), (MTC1 ZERO)>;
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



--
Bruno Cardoso Lopes
http://www.brunocardoso.cc




More information about the llvm-commits mailing list