Mercurial > hg > CbC > CbC_gcc
diff gcc/config/cr16/cr16.md @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/config/cr16/cr16.md Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/config/cr16/cr16.md Thu Oct 25 07:37:49 2018 +0900 @@ -1,5 +1,5 @@ ;; GCC machine description for CR16. -;; Copyright (C) 2012-2017 Free Software Foundation, Inc. +;; Copyright (C) 2012-2018 Free Software Foundation, Inc. ;; Contributed by KPIT Cummins Infosystems Limited. ;; This file is part of GCC. @@ -655,8 +655,8 @@ || register_operand (operands[1], DImode) || register_operand (operands[1], DFmode)" { - if (0 == which_alternative) { - rtx xoperands[2] ; + if (which_alternative == 0) { + rtx xoperands[2]; int reg0 = REGNO (operands[0]); int reg1 = REGNO (operands[1]); @@ -673,9 +673,9 @@ output_asm_insn ("movd\t%1, %0", operands); }} - else if (1 == which_alternative) { - rtx lo_operands[2] ; - rtx hi_operands[2] ; + else if (which_alternative == 1) { + rtx lo_operands[2]; + rtx hi_operands[2]; lo_operands[0] = gen_rtx_REG (SImode, REGNO (operands[0])); hi_operands[0] = gen_rtx_REG (SImode, REGNO (operands[0]) + 2); @@ -688,40 +688,40 @@ output_asm_insn ("movd\t%1, %0", lo_operands); output_asm_insn ("movd\t%1, %0", hi_operands);} - else if (2 == which_alternative) { - rtx xoperands[2] ; - int reg0 = REGNO (operands[0]), reg1 = -2 ; - rtx addr ; + else if (which_alternative == 2) { + rtx xoperands[2]; + int reg0 = REGNO (operands[0]), reg1 = -2; + rtx addr; if (MEM_P (operands[1])) addr = XEXP (operands[1], 0); else - addr = NULL_RTX ; + addr = NULL_RTX; switch (GET_CODE (addr)) { case REG: case SUBREG: reg1 = REGNO (addr); - break ; + break; case PLUS: switch (GET_CODE (XEXP (addr, 0))) { case REG: case SUBREG: reg1 = REGNO (XEXP (addr, 0)); - break ; + break; case PLUS: reg1 = REGNO (XEXP (XEXP (addr, 0), 0)); - break ; + break; default: inform (DECL_SOURCE_LOCATION (cfun->decl), "unexpected expression; addr:"); debug_rtx (addr); inform (DECL_SOURCE_LOCATION (cfun->decl), "operands[1]:"); debug_rtx (operands[1]); inform (DECL_SOURCE_LOCATION (cfun->decl), "generated code might now work\n"); - break ;} - break ; + break;} + break; default: - break ; + break; } xoperands[0] = gen_rtx_REG (SImode, reg0 + 2); @@ -739,13 +739,13 @@ }} else { - rtx xoperands[2] ; + rtx xoperands[2]; xoperands[0] = offset_address (operands[0], GEN_INT (4), 2); xoperands[1] = gen_rtx_REG (SImode, REGNO (operands[1]) + 2); output_asm_insn ("stord\t%1, %0", operands); output_asm_insn ("stord\t%1, %0", xoperands); } - return "" ; + return ""; } [(set_attr "length" "4, <lImmArithD>, <lImmArithD>, <lImmArithD>")] )