Commit 2f970b0f authored by yb9976's avatar yb9976
Browse files

Do not optimize float compares to integer compares.

This fixes opt/fehler286.c.
parent 77084d55
......@@ -5230,7 +5230,7 @@ is_bittest: {
if (get_mode_size_bits(mode) > get_mode_size_bits(op_mode) &&
(is_relation_equal || is_relation_less_greater ||
mode_is_signed(mode) || !mode_is_signed(op_mode)) &&
!mode_is_float(mode)) {
!mode_is_float(op_mode)) {
if (!mode_is_signed(mode) && mode_is_signed(op_mode)) {
relation = is_relation_equal ? ir_relation_equal
: ir_relation_less_greater;
......
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