diff mbox

[2/9] rs6000: Handle rtx cost of NE

Message ID c3d22b84c34d3dbf2eeaeed7c84527de71fe3a44.1411216924.git.segher@kernel.crashing.org
State New
Headers show

Commit Message

Segher Boessenkool Sept. 20, 2014, 6:23 p.m. UTC
Currently NE isn't handled at all.  Handle it the same as EQ, LTU, GTU.


2014-09-20  Segher Boessenkool  <segher@kernel.crashing.org>

	* config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.


---
 gcc/config/rs6000/rs6000.c | 1 +
 1 file changed, 1 insertion(+)

Comments

David Edelsohn Sept. 21, 2014, 5:45 p.m. UTC | #1
On Sat, Sep 20, 2014 at 2:23 PM, Segher Boessenkool
<segher@kernel.crashing.org> wrote:
> Currently NE isn't handled at all.  Handle it the same as EQ, LTU, GTU.
>
>
> 2014-09-20  Segher Boessenkool  <segher@kernel.crashing.org>
>
>         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.

Okay.

Thanks, David
diff mbox

Patch

diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index e2fa75f..7f1eb75 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -30111,6 +30111,7 @@  rs6000_rtx_costs (rtx x, int code, int outer_code, int opno ATTRIBUTE_UNUSED,
 	}
       break;
 
+    case NE:
     case EQ:
     case GTU:
     case LTU: