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

Segher Boessenkool segher@kernel.crashing.org
Sat Sep 20 18:24:00 GMT 2014


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(+)

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:
-- 
1.8.1.4



More information about the Gcc-patches mailing list