From: Richard Stallman Date: Sat, 26 Jun 1993 07:05:47 +0000 (+0000) Subject: Clean up formatting. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c569c2c1dcd837586c920b282337c2dcc441cb1c;p=gcc.git Clean up formatting. From-SVN: r4739 --- diff --git a/gcc/config/we32k/we32k.c b/gcc/config/we32k/we32k.c index e25c793cc18..c6904a567f2 100644 --- a/gcc/config/we32k/we32k.c +++ b/gcc/config/we32k/we32k.c @@ -25,109 +25,115 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "real.h" -void output_move_double(operands) -rtx *operands; - { +void +output_move_double (operands) + rtx *operands; +{ rtx lsw_operands[2]; rtx lsw_sreg = NULL; rtx msw_dreg = NULL; - if (GET_CODE (operands[0]) == REG) { - lsw_operands[0] = gen_rtx(REG, SImode, REGNO (operands[0]) + 1); - msw_dreg = operands[0]; + if (GET_CODE (operands[0]) == REG) + { + lsw_operands[0] = gen_rtx (REG, SImode, REGNO (operands[0]) + 1); + msw_dreg = operands[0]; } + else if (GET_CODE (operands[0]) == MEM && offsettable_memref_p (operands[0])) + lsw_operands[0] = adj_offsettable_operand (operands[0], 4); else - if (GET_CODE (operands[0]) == MEM && offsettable_memref_p (operands[0])) - lsw_operands[0] = adj_offsettable_operand(operands[0], 4); - else - abort(); + abort (); - if (GET_CODE (operands[1]) == REG) { - lsw_operands[1] = gen_rtx(REG, SImode, REGNO (operands[1]) + 1); - lsw_sreg = lsw_operands[1]; + if (GET_CODE (operands[1]) == REG) + { + lsw_operands[1] = gen_rtx (REG, SImode, REGNO (operands[1]) + 1); + lsw_sreg = lsw_operands[1]; } - else - if (GET_CODE (operands[1]) == MEM && offsettable_memref_p (operands[1])) { - lsw_operands[1] = adj_offsettable_operand(operands[1], 4); + else if (GET_CODE (operands[1]) == MEM && offsettable_memref_p (operands[1])) + { + lsw_operands[1] = adj_offsettable_operand (operands[1], 4); lsw_sreg = operands[1]; - for ( ; ; ) { - if (REG_P (lsw_sreg)) - break; - if (CONSTANT_ADDRESS_P (lsw_sreg)) { - lsw_sreg = NULL; - break; - } - if (GET_CODE (lsw_sreg) == MEM) { - lsw_sreg = XEXP (lsw_sreg, 0); - continue; - } - if (GET_CODE (lsw_sreg) == PLUS) - if (CONSTANT_ADDRESS_P (XEXP (lsw_sreg, 1))) { - lsw_sreg = XEXP (lsw_sreg, 0); - continue; - } - else - if (CONSTANT_ADDRESS_P (XEXP (lsw_sreg, 0))) { - lsw_sreg = XEXP (lsw_sreg, 1); - continue; - } - abort(); - } - } - else - if (GET_CODE (operands[1]) == CONST_DOUBLE) - { - lsw_operands[1] = gen_rtx(CONST_INT, SImode, - CONST_DOUBLE_HIGH(operands[1])); - operands[1] = gen_rtx(CONST_INT, SImode, - CONST_DOUBLE_LOW(operands[1])); - } - else - if (GET_CODE (operands[1]) == CONST_INT) - { - lsw_operands[1] = operands[1]; - operands[1] = const0_rtx; - } - else - abort(); + for ( ; ; ) + { + if (REG_P (lsw_sreg)) + break; + if (CONSTANT_ADDRESS_P (lsw_sreg)) + { + lsw_sreg = NULL; + break; + } + if (GET_CODE (lsw_sreg) == MEM) + { + lsw_sreg = XEXP (lsw_sreg, 0); + continue; + } + if (GET_CODE (lsw_sreg) == PLUS) + { + if (CONSTANT_ADDRESS_P (XEXP (lsw_sreg, 1))) + { + lsw_sreg = XEXP (lsw_sreg, 0); + continue; + } + else if (CONSTANT_ADDRESS_P (XEXP (lsw_sreg, 0))) + { + lsw_sreg = XEXP (lsw_sreg, 1); + continue; + } + } + abort (); + } + } + else if (GET_CODE (operands[1]) == CONST_DOUBLE) + { + lsw_operands[1] = gen_rtx (CONST_INT, SImode, + CONST_DOUBLE_HIGH (operands[1])); + operands[1] = gen_rtx (CONST_INT, SImode, + CONST_DOUBLE_LOW (operands[1])); + } + else if (GET_CODE (operands[1]) == CONST_INT) + { + lsw_operands[1] = operands[1]; + operands[1] = const0_rtx; + } + else + abort (); - if ( !msw_dreg || !lsw_sreg || REGNO (msw_dreg) != REGNO (lsw_sreg)) { - output_asm_insn("movw %1, %0", operands); - output_asm_insn("movw %1, %0", lsw_operands); + if (!msw_dreg || !lsw_sreg || REGNO (msw_dreg) != REGNO (lsw_sreg)) + { + output_asm_insn ("movw %1, %0", operands); + output_asm_insn ("movw %1, %0", lsw_operands); } - else { - output_asm_insn("movw %1, %0", lsw_operands); - output_asm_insn("movw %1, %0", operands); + else + { + output_asm_insn ("movw %1, %0", lsw_operands); + output_asm_insn ("movw %1, %0", operands); } - } +} -void output_push_double(operands) -rtx *operands; - { +void +output_push_double (operands) + rtx *operands; +{ rtx lsw_operands[1]; if (GET_CODE (operands[0]) == REG) - lsw_operands[0] = gen_rtx(REG, SImode, REGNO (operands[0]) + 1); + lsw_operands[0] = gen_rtx (REG, SImode, REGNO (operands[0]) + 1); + else if (GET_CODE (operands[0]) == MEM && offsettable_memref_p (operands[0])) + lsw_operands[0] = adj_offsettable_operand (operands[0], 4); + else if (GET_CODE (operands[0]) == CONST_DOUBLE) + { + lsw_operands[0] = gen_rtx (CONST_INT, SImode, + CONST_DOUBLE_HIGH (operands[0])); + operands[0] = gen_rtx (CONST_INT, SImode, + CONST_DOUBLE_LOW (operands[0])); + } + else if (GET_CODE (operands[0]) == CONST_INT) + { + lsw_operands[0] = operands[0]; + operands[0] = const0_rtx; + } else - if (GET_CODE (operands[0]) == MEM && offsettable_memref_p (operands[0])) - lsw_operands[0] = adj_offsettable_operand(operands[0], 4); - else - if (GET_CODE (operands[0]) == CONST_DOUBLE) - { - lsw_operands[0] = gen_rtx(CONST_INT, SImode, - CONST_DOUBLE_HIGH(operands[0])); - operands[0] = gen_rtx(CONST_INT, SImode, - CONST_DOUBLE_LOW(operands[0])); - } - else - if (GET_CODE (operands[0]) == CONST_INT) - { - lsw_operands[0] = operands[0]; - operands[0] = const0_rtx; - } - else - abort(); + abort (); - output_asm_insn("pushw %0", operands); - output_asm_insn("pushw %0", lsw_operands); - } + output_asm_insn ("pushw %0", operands); + output_asm_insn ("pushw %0", lsw_operands); +}