Commit 9dbd3483 authored by Matthias Braun's avatar Matthias Braun
Browse files

sparc: fix bitopcc bugs

[r27971]
parent 9c99a89c
......@@ -462,7 +462,7 @@ And => {
AndCCZero => {
irn_flags => [ "rematerializable", "modifies_flags" ],
emit => '. and %S1, %R2I, %%g0',
emit => '. andcc %S1, %R2I, %%g0',
mode => $mode_flags,
constructors => \%binopcczero_operand_constructors,
},
......@@ -476,7 +476,7 @@ AndN => {
AndNCCZero => {
irn_flags => [ "rematerializable", "modifies_flags" ],
emit => '. andn %S1, %R2I, %%g0',
emit => '. andncc %S1, %R2I, %%g0',
mode => $mode_flags,
constructors => \%binopcczero_operand_constructors,
},
......@@ -490,7 +490,7 @@ Or => {
OrCCZero => {
irn_flags => [ "rematerializable", "modifies_flags" ],
emit => '. or %S1, %R2I, %%g0',
emit => '. orcc %S1, %R2I, %%g0',
mode => $mode_flags,
constructors => \%binopcczero_operand_constructors,
},
......@@ -504,7 +504,7 @@ OrN => {
OrNCCZero => {
irn_flags => [ "rematerializable", "modifies_flags" ],
emit => '. orn %S1, %R2I, %%g0',
emit => '. orncc %S1, %R2I, %%g0',
mode => $mode_flags,
constructors => \%binopcczero_operand_constructors,
},
......@@ -518,7 +518,7 @@ Xor => {
XorCCZero => {
irn_flags => [ "rematerializable", "modifies_flags" ],
emit => '. xor %S1, %R2I, %%g0',
emit => '. xorcc %S1, %R2I, %%g0',
mode => $mode_flags,
constructors => \%binopcczero_operand_constructors,
},
......@@ -532,7 +532,7 @@ XNor => {
XNorCCZero => {
irn_flags => [ "rematerializable", "modifies_flags" ],
emit => '. xnor %S1, %R2I, %%g0',
emit => '. xnorcc %S1, %R2I, %%g0',
mode => $mode_flags,
constructors => \%binopcczero_operand_constructors,
},
......
......@@ -726,7 +726,7 @@ static ir_node *gen_helper_bitop(ir_node *node,
ir_node *op1 = get_binop_left(node);
ir_node *op2 = get_binop_right(node);
if (is_Not(op1)) {
return gen_helper_binop_args(node, get_Not_op(op1), op2,
return gen_helper_binop_args(node, op2, get_Not_op(op1),
MATCH_MODE_NEUTRAL,
new_not_reg, new_not_imm);
}
......
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