* s390-opc.c (INSTR_SS_L2RDRD): New.
[deliverable/binutils-gdb.git] / gas / config / bfin-parse.y
index f74074e55a1b4c0279137a5ef40e2ba66af2c289..b3416aa1130a7a7e2aedb71256843070cc1a664a 100644 (file)
@@ -4328,6 +4328,12 @@ binary (Expr_Op_Type op, Expr_Node *x, Expr_Node *y)
       x = y;
       y = t;
     }
+  /* Canonicalize subtraction of const to addition of negated const.  */
+  if (op == Expr_Op_Type_Sub && y->type == Expr_Node_Constant)
+    {
+      op = Expr_Op_Type_Add;
+      y->value.i_value = -y->value.i_value;
+    }
   if (y->type == Expr_Node_Constant && x->type == Expr_Node_Binop
       && x->Right_Child->type == Expr_Node_Constant)
     {
This page took 0.023068 seconds and 4 git commands to generate.