Commit e9ab92dc authored by Matthias Braun's avatar Matthias Braun
Browse files

Fix computed_value for builtin_clz

parent 1eb7b3e9
......@@ -833,7 +833,7 @@ static ir_tarval *computed_value_Proj_Builtin(ir_node const *const proj)
if (b) {
val = get_tarval_highest_bit(b->z);
if (val != -1 && tarval_get_bit(b->o, val)) {
val = get_mode_size_bits(get_irn_mode(proj)) - val - 1;
val = get_mode_size_bits(get_irn_mode(op)) - val - 1;
goto make_val;
}
}
......
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