summaryrefslogtreecommitdiffhomepage
path: root/ir/lower
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-06-07 08:07:35 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-06-07 08:07:35 +0200
commit94b8be43b7ff61e0f4f4711b4e7316f45fd268e6 (patch)
tree7b0ad55a759e4e6b59fabe4a923821a9701460ef /ir/lower
parent9500e1cb9f438db793f651766ebe613440ecea80 (diff)
When making a 'Div' or 'Mod', automatically infer its mode from its left operand.
Diffstat (limited to 'ir/lower')
-rw-r--r--ir/lower/lower_intrinsics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/lower/lower_intrinsics.c b/ir/lower/lower_intrinsics.c
index d76e604..cb52116 100644
--- a/ir/lower/lower_intrinsics.c
+++ b/ir/lower/lower_intrinsics.c
@@ -279,7 +279,7 @@ int i_mapper_pow(ir_node *call)
}
irn = new_r_Const_one(irg, mode);
- div = new_rd_Div(dbg, block, mem, irn, left, mode, true);
+ div = new_rd_Div(dbg, block, mem, irn, left, true);
mem = new_r_Proj(div, mode_M, pn_Div_M);
irn = new_r_Proj(div, mode, pn_Div_res);
if (ir_throws_exception(call)) {