Commit 12efc347 authored by yb9976's avatar yb9976
Browse files

Quick fix for opt/fehler191.c.

This also fixes 176.gcc and 300.twolf.
parent 3de38ec3
......@@ -3079,6 +3079,13 @@ static ir_node *transform_node_bitop_shift(ir_node *n)
if (is_Shl(left)) {
tv_bitop = tarval_shr(tv2, tv1);
} else if (is_Shr(left)) {
if (is_Or(n)) {
/*
* TODO this can be improved by checking whether
* the left shift produces an overflow
*/
return n;
}
tv_bitop = tarval_shl(tv2, tv1);
} else {
assert(is_Rotl(left));
......
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