Commit 14083b56 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix problems when folding constants of different mode

[r23662]
parent 65d5ca1d
......@@ -5244,7 +5244,10 @@ static ir_node *transform_node_shl_shr(ir_node *n) {
return n;
}
assert(get_tarval_mode(tv_shl) == get_tarval_mode(tv_shr));
if (get_tarval_mode(tv_shl) != get_tarval_mode(tv_shr)) {
tv_shl = tarval_convert_to(tv_shl, get_tarval_mode(tv_shr));
}
assert(tv_mask != tarval_bad);
assert(get_tarval_mode(tv_mask) == mode);
......
Supports Markdown
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