Commit 58ed88f2 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix warnings

[r27822]
parent e07d8cc4
...@@ -439,6 +439,11 @@ static ir_node *gen_int_binop(ir_node *node, match_flags_t flags, ...@@ -439,6 +439,11 @@ static ir_node *gen_int_binop(ir_node *node, match_flags_t flags,
attr->shift_modifier); attr->shift_modifier);
} }
break; break;
case ARM_SHF_REG:
case ARM_SHF_RRX:
break;
case ARM_SHF_INVALID:
panic("invalid shift");
} }
} }
if ((flags & (MATCH_COMMUTATIVE|MATCH_REVERSE)) && is_arm_Mov(new_op1)) { if ((flags & (MATCH_COMMUTATIVE|MATCH_REVERSE)) && is_arm_Mov(new_op1)) {
...@@ -446,7 +451,7 @@ static ir_node *gen_int_binop(ir_node *node, match_flags_t flags, ...@@ -446,7 +451,7 @@ static ir_node *gen_int_binop(ir_node *node, match_flags_t flags,
int idx = flags & MATCH_REVERSE ? 1 : 0; int idx = flags & MATCH_REVERSE ? 1 : 0;
switch (attr->shift_modifier) { switch (attr->shift_modifier) {
ir_node *mov_op, *mov_sft; ir_node *mov_op, *mov_sft;
case ARM_SHF_IMM: case ARM_SHF_IMM:
case ARM_SHF_ASR_IMM: case ARM_SHF_ASR_IMM:
...@@ -471,6 +476,12 @@ static ir_node *gen_int_binop(ir_node *node, match_flags_t flags, ...@@ -471,6 +476,12 @@ static ir_node *gen_int_binop(ir_node *node, match_flags_t flags,
attr->shift_modifier); attr->shift_modifier);
} }
break; break;
case ARM_SHF_REG:
case ARM_SHF_RRX:
break;
case ARM_SHF_INVALID:
panic("invalid shift");
} }
} }
return factory->new_binop_reg(dbgi, block, new_op1, new_op2); return factory->new_binop_reg(dbgi, block, new_op1, new_op2);
...@@ -840,7 +851,7 @@ static ir_node *gen_Not(ir_node *node) ...@@ -840,7 +851,7 @@ static ir_node *gen_Not(ir_node *node)
const arm_shifter_operand_t *attr = get_arm_shifter_operand_attr_const(new_op); const arm_shifter_operand_t *attr = get_arm_shifter_operand_attr_const(new_op);
switch (attr->shift_modifier) { switch (attr->shift_modifier) {
ir_node *mov_op, *mov_sft; ir_node *mov_op, *mov_sft;
case ARM_SHF_IMM: case ARM_SHF_IMM:
case ARM_SHF_ASR_IMM: case ARM_SHF_ASR_IMM:
...@@ -859,6 +870,12 @@ static ir_node *gen_Not(ir_node *node) ...@@ -859,6 +870,12 @@ static ir_node *gen_Not(ir_node *node)
mov_sft = get_irn_n(new_op, 1); mov_sft = get_irn_n(new_op, 1);
return new_bd_arm_Mvn_reg_shift_reg(dbgi, block, mov_op, mov_sft, return new_bd_arm_Mvn_reg_shift_reg(dbgi, block, mov_op, mov_sft,
attr->shift_modifier); attr->shift_modifier);
case ARM_SHF_REG:
case ARM_SHF_RRX:
break;
case ARM_SHF_INVALID:
panic("invalid shift");
} }
} }
......
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