- res = new_ir_node (db, irg, block, op_Sub, mode, 2, in);
- res = optimize_node (res);
- IRN_VRFY_IRG(res, irg);
-
- return res;
-}
-
-static ir_node *
-new_bd_Minus (dbg_info *db, ir_node *block,
- ir_node *op, ir_mode *mode)
-{
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- res = new_ir_node(db, irg, block, op_Minus, mode, 1, &op);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Mul (dbg_info *db, ir_node *block,
- ir_node *op1, ir_node *op2, ir_mode *mode)
-{
- ir_node *in[2];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = op1;
- in[1] = op2;
- res = new_ir_node(db, irg, block, op_Mul, mode, 2, in);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Quot (dbg_info *db, ir_node *block,
- ir_node *memop, ir_node *op1, ir_node *op2)
-{
- ir_node *in[3];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = memop;
- in[1] = op1;
- in[2] = op2;
- res = new_ir_node(db, irg, block, op_Quot, mode_T, 3, in);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_DivMod (dbg_info *db, ir_node *block,
- ir_node *memop, ir_node *op1, ir_node *op2)
-{
- ir_node *in[3];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = memop;
- in[1] = op1;
- in[2] = op2;
- res = new_ir_node(db, irg, block, op_DivMod, mode_T, 3, in);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Div (dbg_info *db, ir_node *block,
- ir_node *memop, ir_node *op1, ir_node *op2)
-{
- ir_node *in[3];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = memop;
- in[1] = op1;
- in[2] = op2;
- res = new_ir_node(db, irg, block, op_Div, mode_T, 3, in);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Mod (dbg_info *db, ir_node *block,
- ir_node *memop, ir_node *op1, ir_node *op2)
-{
- ir_node *in[3];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = memop;
- in[1] = op1;
- in[2] = op2;
- res = new_ir_node(db, irg, block, op_Mod, mode_T, 3, in);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_And (dbg_info *db, ir_node *block,
- ir_node *op1, ir_node *op2, ir_mode *mode)
-{
- ir_node *in[2];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = op1;
- in[1] = op2;
- res = new_ir_node(db, irg, block, op_And, mode, 2, in);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Or (dbg_info *db, ir_node *block,
- ir_node *op1, ir_node *op2, ir_mode *mode)
-{
- ir_node *in[2];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = op1;
- in[1] = op2;
- res = new_ir_node(db, irg, block, op_Or, mode, 2, in);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Eor (dbg_info *db, ir_node *block,
- ir_node *op1, ir_node *op2, ir_mode *mode)
-{
- ir_node *in[2];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = op1;
- in[1] = op2;
- res = new_ir_node (db, irg, block, op_Eor, mode, 2, in);
- res = optimize_node (res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Not (dbg_info *db, ir_node *block,
- ir_node *op, ir_mode *mode)
-{
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- res = new_ir_node(db, irg, block, op_Not, mode, 1, &op);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Shl (dbg_info *db, ir_node *block,
- ir_node *op, ir_node *k, ir_mode *mode)
-{
- ir_node *in[2];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = op;
- in[1] = k;
- res = new_ir_node(db, irg, block, op_Shl, mode, 2, in);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Shr (dbg_info *db, ir_node *block,
- ir_node *op, ir_node *k, ir_mode *mode)
-{
- ir_node *in[2];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = op;
- in[1] = k;
- res = new_ir_node(db, irg, block, op_Shr, mode, 2, in);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Shrs (dbg_info *db, ir_node *block,
- ir_node *op, ir_node *k, ir_mode *mode)
-{
- ir_node *in[2];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = op;
- in[1] = k;
- res = new_ir_node(db, irg, block, op_Shrs, mode, 2, in);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Rot (dbg_info *db, ir_node *block,
- ir_node *op, ir_node *k, ir_mode *mode)
-{
- ir_node *in[2];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = op;
- in[1] = k;
- res = new_ir_node(db, irg, block, op_Rot, mode, 2, in);
- res = optimize_node(res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Abs (dbg_info *db, ir_node *block,
- ir_node *op, ir_mode *mode)
-{
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- res = new_ir_node(db, irg, block, op_Abs, mode, 1, &op);
- res = optimize_node (res);
- IRN_VRFY_IRG(res, irg);
- return res;
-}
-
-static ir_node *
-new_bd_Cmp (dbg_info *db, ir_node *block,
- ir_node *op1, ir_node *op2)
-{
- ir_node *in[2];
- ir_node *res;
- ir_graph *irg = current_ir_graph;
-
- in[0] = op1;
- in[1] = op2;
-