Commit 09238e32 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Do not unconditionally set the unsigned pnc flag, but only for floating point...

Do not unconditionally set the unsigned pnc flag, but only for floating point comparisons. This fixes r15142.

[r15153]
parent 3e83d982
......@@ -813,7 +813,10 @@ void finish_CondJmp(ia32_emit_env_t *env, const ir_node *node, ir_mode *mode,
}
be_emit_cstring(env, "\tj");
ia32_emit_cmp_suffix(env, pnc | ia32_pn_Cmp_Unsigned);
// The bits set by floating point compares correspond to unsigned comparisons
if (mode_is_float(mode))
pnc |= ia32_pn_Cmp_Unsigned;
ia32_emit_cmp_suffix(env, pnc);
be_emit_char(env, ' ');
ia32_emit_cfop_target(env, proj_true);
be_emit_finish_line_gas(env, proj_true);
......
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