X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fia32%2Fia32_intrinsics.c;h=52b0e95f33c0c345177b073d2edd21536e9a0cb2;hb=a1a465eb2b3f54027b29f829423fffd0396937f4;hp=d356ef76dec6c54cd6c314d38675b44d750414a5;hpb=987fdb8ee4628fbda97f664fd657e1178afc8d96;p=libfirm diff --git a/ir/be/ia32/ia32_intrinsics.c b/ir/be/ia32/ia32_intrinsics.c index d356ef76d..52b0e95f3 100644 --- a/ir/be/ia32/ia32_intrinsics.c +++ b/ir/be/ia32/ia32_intrinsics.c @@ -135,6 +135,7 @@ static int map_Shl(ir_node *call, void *ctx) { /* l_res = SHL a_l, cnt */ h_res = new_rd_ia32_l_Shl(dbg, irg, block, a_l, cnt, h_res_mode); + add_irn_dep(h_res, l_res); resolve_call(call, l_res, h_res, irg, block); @@ -162,6 +163,7 @@ static int map_Shr(ir_node *call, void *ctx) { /* h_res = SHR a_h, cnt */ h_res = new_rd_ia32_l_Shr(dbg, irg, block, a_h, cnt, h_res_mode); + add_irn_dep(h_res, l_res); resolve_call(call, l_res, h_res, irg, block); @@ -189,6 +191,7 @@ static int map_Shrs(ir_node *call, void *ctx) { /* h_res = SAR a_h, cnt */ h_res = new_rd_ia32_l_Shrs(dbg, irg, block, a_h, cnt, h_res_mode); + add_irn_dep(h_res, l_res); resolve_call(call, l_res, h_res, irg, block); @@ -258,6 +261,7 @@ static int map_Minus(ir_node *call, void *ctx) { /* too bad: we need 0 in a register here */ cnst = new_Const_long(h_res_mode, 0); h_res = new_rd_ia32_l_SubC(dbg, irg, block, cnst, a_h, h_res_mode); + add_irn_dep(h_res, l_res); resolve_call(call, l_res, h_res, irg, block); @@ -298,6 +302,7 @@ static int map_Abs(ir_node *call, void *ctx) { sub_h = new_rd_ia32_l_Eor(dbg, irg, block, a_h, sign, h_res_mode); l_res = new_rd_ia32_l_Sub(dbg, irg, block, sub_l, sign, l_res_mode); h_res = new_rd_ia32_l_SubC(dbg, irg, block, sub_h, sign, l_res_mode); + add_irn_dep(h_res, l_res); resolve_call(call, l_res, h_res, irg, block);