Commit 8ac6aa9d authored by Matthias Braun's avatar Matthias Braun
Browse files

fix ShlD/ShrD not getting generated in some cases

parent 1953ce88
......@@ -1431,7 +1431,7 @@ static bool is_complementary_shifts(ir_node *value1, ir_node *value2)
if (tarval_is_long(tv1) && tarval_is_long(tv2)) {
long v1 = get_tarval_long(tv1);
long v2 = get_tarval_long(tv2);
return v1 < v2 && v2 == 32-v1;
return v1 <= v2 && v2 == 32-v1;
}
}
return false;
......
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