[llvm-commits] [llvm] r86651 - /llvm/trunk/lib/Target/Mips/MipsInstrFPU.td
Chris Lattner
clattner at apple.com
Mon Nov 9 21:16:41 PST 2009
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.
-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
More information about the llvm-commits
mailing list