return;
ent = get_SymConst_entity(symconst);
- r = (const i_call_record*)pmap_get(wenv->c_map, ent);
+ r = pmap_get(i_call_record const, wenv->c_map, ent);
if (r != NULL) {
wenv->nr_of_intrinsics += r->i_mapper(node, r->ctx) ? 1 : 0;
set_irg_callee_info_state(irg, irg_callee_info_inconsistent);
/* Exception control flow might have changed / new block might have added. */
- clear_irg_state(irg, IR_GRAPH_STATE_CONSISTENT_DOMINANCE);
+ clear_irg_properties(irg, IR_GRAPH_PROPERTY_CONSISTENT_DOMINANCE);
/* verify here */
irg_verify(irg, VERIFY_NORMAL);
dbg = get_irn_dbg_info(call);
if (irn == NULL) {
- ir_mode *mode = get_irn_mode(left);
+ ir_mode *result_mode = get_irn_mode(left);
ir_node *div;
+ ir_mode *mode = result_mode;
+ ir_mode *float_arithmetic = be_get_backend_param()->mode_float_arithmetic;
+ if (float_arithmetic != NULL) {
+ left = new_r_Conv(block, left, float_arithmetic);
+ mode = float_arithmetic;
+ }
+
irn = new_r_Const(irg, get_mode_one(mode));
div = new_rd_Div(dbg, block, mem, irn, left, mode, op_pin_state_pinned);
mem = new_r_Proj(div, mode_M, pn_Div_M);
exc_jmp = new_r_Proj(div, mode_X, pn_Div_X_except);
ir_set_throws_exception(div, true);
}
+ if (result_mode != mode) {
+ irn = new_r_Conv(block, irn, result_mode);
+ }
}
DBG_OPT_ALGSIM0(call, irn, FS_OPT_RTS_POW);
replace_call(irn, call, mem, reg_jmp, exc_jmp);
ir_node *val = get_Call_param(call, 0);
(void) ctx;
- if (is_strictConv(val)) {
+ if (is_Conv(val)) {
ir_node *op = get_Conv_op(val);
if (is_Minus(op)) {
/* f(-x) = f(x) with strictConv */
op = get_Minus_op(op);
val = new_rd_Conv(dbg, block, op, mode);
- if (is_Conv(val)) {
- /* still a Conv ? */
- set_Conv_strict(val, 1);
- }
DBG_OPT_ALGSIM2(call, op, call, FS_OPT_RTS_SYMMETRIC);
set_Call_param(call, 0, val);
changed = 1;