Commit 5334c621 authored by Tobias Rapp's avatar Tobias Rapp
Browse files

Binary shifting operations work without zext/upconv/...

parent cfb9ab2a
......@@ -621,12 +621,9 @@ static ir_node *gen_shift_binop(ir_node *node, ir_node *op1, ir_node *op2,
mode = get_mode_size_bits(mode) > 32 ? mode_gp : mode_Iu;
} else {
op1 = skip_sameconv(op1);
if (get_mode_size_bits(mode) != 32
&& get_mode_size_bits(mode) != 64) {
panic("TODO: different modes, upconv/zext, ...");
} else {
in[arity++] = be_transform_node(op1);
}
/* Use 8/16bit operations instead of doing zext/upconv */
in[arity++] = be_transform_node(op1);
}
/* we can skip any convs for the shift count, as it only uses the lowest
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment