Fix compile time warnings when building riscv assembler.
* config/tc-riscv.c (riscv_ip): Fix compile time warnings about misleading indentation.
This commit is contained in:
parent
8488c357ce
commit
0257c2ff4f
@ -1,3 +1,8 @@
|
||||
2021-02-19 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* config/tc-riscv.c (riscv_ip): Fix compile time warnings about
|
||||
misleading indentation.
|
||||
|
||||
2021-02-19 Nelson Chu <nelson.chu@sifive.com>
|
||||
|
||||
PR 27158
|
||||
|
@ -2093,7 +2093,7 @@ riscv_ip (char *str, struct riscv_cl_insn *ip, expressionS *imm_expr,
|
||||
|| imm_expr->X_add_number >= 32
|
||||
|| !VALID_CLTYPE_IMM ((valueT) imm_expr->X_add_number))
|
||||
break;
|
||||
ip->insn_opcode |= ENCODE_CLTYPE_IMM (imm_expr->X_add_number);
|
||||
ip->insn_opcode |= ENCODE_CLTYPE_IMM (imm_expr->X_add_number);
|
||||
goto rvc_imm_done;
|
||||
case '6':
|
||||
if (my_getSmallExpression (imm_expr, imm_reloc, s, p)
|
||||
@ -2102,7 +2102,7 @@ riscv_ip (char *str, struct riscv_cl_insn *ip, expressionS *imm_expr,
|
||||
|| imm_expr->X_add_number >= 64
|
||||
|| !VALID_CSSTYPE_IMM ((valueT) imm_expr->X_add_number))
|
||||
break;
|
||||
ip->insn_opcode |= ENCODE_CSSTYPE_IMM (imm_expr->X_add_number);
|
||||
ip->insn_opcode |= ENCODE_CSSTYPE_IMM (imm_expr->X_add_number);
|
||||
goto rvc_imm_done;
|
||||
case '8':
|
||||
if (my_getSmallExpression (imm_expr, imm_reloc, s, p)
|
||||
@ -2111,7 +2111,7 @@ riscv_ip (char *str, struct riscv_cl_insn *ip, expressionS *imm_expr,
|
||||
|| imm_expr->X_add_number >= 256
|
||||
|| !VALID_CIWTYPE_IMM ((valueT) imm_expr->X_add_number))
|
||||
break;
|
||||
ip->insn_opcode |= ENCODE_CIWTYPE_IMM (imm_expr->X_add_number);
|
||||
ip->insn_opcode |= ENCODE_CIWTYPE_IMM (imm_expr->X_add_number);
|
||||
goto rvc_imm_done;
|
||||
case 'j':
|
||||
if (my_getSmallExpression (imm_expr, imm_reloc, s, p)
|
||||
|
Loading…
Reference in New Issue
Block a user