Commit 5bb8cd35 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Fix last commit. Note to self: Never do last minute changes after testing.

[r27517]
parent 7dc7d79b
......@@ -36,8 +36,8 @@ enum {
ia32_pn_Cmp_float = 0x2000,
ia32_pn_Cmp_parity = 0x4000,
/* The unsigned Lt/Ge comparisons test the carry bit. */
ia32_pn_Cmp_carry = pn_Cmp_Lt | ia32_pn_Cmp_unsigned
ia32_pn_Cmp_not_carry = pn_Cmp_Ge | ia32_pn_Cmp_unsigned,
ia32_pn_Cmp_carry = pn_Cmp_Lt | ia32_pn_Cmp_unsigned,
ia32_pn_Cmp_not_carry = pn_Cmp_Ge | ia32_pn_Cmp_unsigned
};
typedef enum {
......
......@@ -265,8 +265,8 @@ static void peephole_ia32_Test(ir_node *node)
int pnc = get_ia32_condcode(user);
switch (pnc) {
case pn_Cmp_Eq: pnc = ia32_pn_Cmp_no_carry; break;
case pn_Cmp_Lg: pnc = ia32_pn_Cmp_carry; break;
case pn_Cmp_Eq: pnc = ia32_pn_Cmp_not_carry; break;
case pn_Cmp_Lg: pnc = ia32_pn_Cmp_carry; break;
default: panic("unexpected pn");
}
set_ia32_condcode(user, pnc);
......
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