Commit 7e1a450d by Kazu Hirata Committed by Kazu Hirata

* optabs.c: Fix formatting.

From-SVN: r59151
parent 1b245ade
2002-11-16 Kazu Hirata <kazu@cs.umass.edu>
* optabs.c: Fix formatting.
Sat Nov 16 02:06:02 CET 2002 Jan Hubicka <jh@suse.cz> Sat Nov 16 02:06:02 CET 2002 Jan Hubicka <jh@suse.cz>
* athlon.md, k6.md, pentium.md, ppro.md: Handle shift1, rotate1 * athlon.md, k6.md, pentium.md, ppro.md: Handle shift1, rotate1
......
...@@ -646,7 +646,7 @@ expand_simple_binop (mode, code, op0, op1, target, unsignedp, methods) ...@@ -646,7 +646,7 @@ expand_simple_binop (mode, code, op0, op1, target, unsignedp, methods)
int unsignedp; int unsignedp;
enum optab_methods methods; enum optab_methods methods;
{ {
optab binop = code_to_optab [(int) code]; optab binop = code_to_optab[(int) code];
if (binop == 0) if (binop == 0)
abort (); abort ();
...@@ -1138,7 +1138,7 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods) ...@@ -1138,7 +1138,7 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods)
if (shift_count > BITS_PER_WORD) if (shift_count > BITS_PER_WORD)
{ {
first_shift_count = GEN_INT (shift_count - BITS_PER_WORD); first_shift_count = GEN_INT (shift_count - BITS_PER_WORD);
second_shift_count = GEN_INT (2*BITS_PER_WORD - shift_count); second_shift_count = GEN_INT (2 * BITS_PER_WORD - shift_count);
} }
else else
{ {
...@@ -2317,7 +2317,7 @@ expand_simple_unop (mode, code, op0, target, unsignedp) ...@@ -2317,7 +2317,7 @@ expand_simple_unop (mode, code, op0, target, unsignedp)
rtx target; rtx target;
int unsignedp; int unsignedp;
{ {
optab unop = code_to_optab [(int) code]; optab unop = code_to_optab[(int) code];
if (unop == 0) if (unop == 0)
abort (); abort ();
...@@ -3293,24 +3293,24 @@ can_compare_p (code, mode, purpose) ...@@ -3293,24 +3293,24 @@ can_compare_p (code, mode, purpose)
{ {
do do
{ {
if (cmp_optab->handlers[(int)mode].insn_code != CODE_FOR_nothing) if (cmp_optab->handlers[(int) mode].insn_code != CODE_FOR_nothing)
{ {
if (purpose == ccp_jump) if (purpose == ccp_jump)
return bcc_gen_fctn[(int)code] != NULL; return bcc_gen_fctn[(int) code] != NULL;
else if (purpose == ccp_store_flag) else if (purpose == ccp_store_flag)
return setcc_gen_code[(int)code] != CODE_FOR_nothing; return setcc_gen_code[(int) code] != CODE_FOR_nothing;
else else
/* There's only one cmov entry point, and it's allowed to fail. */ /* There's only one cmov entry point, and it's allowed to fail. */
return 1; return 1;
} }
if (purpose == ccp_jump if (purpose == ccp_jump
&& cbranch_optab->handlers[(int)mode].insn_code != CODE_FOR_nothing) && cbranch_optab->handlers[(int) mode].insn_code != CODE_FOR_nothing)
return 1; return 1;
if (purpose == ccp_cmov if (purpose == ccp_cmov
&& cmov_optab->handlers[(int)mode].insn_code != CODE_FOR_nothing) && cmov_optab->handlers[(int) mode].insn_code != CODE_FOR_nothing)
return 1; return 1;
if (purpose == ccp_store_flag if (purpose == ccp_store_flag
&& cstore_optab->handlers[(int)mode].insn_code != CODE_FOR_nothing) && cstore_optab->handlers[(int) mode].insn_code != CODE_FOR_nothing)
return 1; return 1;
mode = GET_MODE_WIDER_MODE (mode); mode = GET_MODE_WIDER_MODE (mode);
...@@ -3378,7 +3378,7 @@ prepare_cmp_insn (px, py, pcomparison, size, pmode, punsignedp, purpose) ...@@ -3378,7 +3378,7 @@ prepare_cmp_insn (px, py, pcomparison, size, pmode, punsignedp, purpose)
states that canonical comparisons are required only for targets which states that canonical comparisons are required only for targets which
have cc0. */ have cc0. */
if (CONSTANT_P (x) && ! CONSTANT_P (y)) if (CONSTANT_P (x) && ! CONSTANT_P (y))
abort(); abort ();
#endif #endif
/* Don't let both operands fail to indicate the mode. */ /* Don't let both operands fail to indicate the mode. */
...@@ -3545,7 +3545,7 @@ emit_cmp_and_jump_insn_1 (x, y, mode, comparison, unsignedp, label) ...@@ -3545,7 +3545,7 @@ emit_cmp_and_jump_insn_1 (x, y, mode, comparison, unsignedp, label)
if (label) if (label)
{ {
icode = cbranch_optab->handlers[(int)wider_mode].insn_code; icode = cbranch_optab->handlers[(int) wider_mode].insn_code;
if (icode != CODE_FOR_nothing if (icode != CODE_FOR_nothing
&& (*insn_data[icode].operand[0].predicate) (test, wider_mode)) && (*insn_data[icode].operand[0].predicate) (test, wider_mode))
...@@ -3586,7 +3586,8 @@ emit_cmp_and_jump_insn_1 (x, y, mode, comparison, unsignedp, label) ...@@ -3586,7 +3586,8 @@ emit_cmp_and_jump_insn_1 (x, y, mode, comparison, unsignedp, label)
break; break;
wider_mode = GET_MODE_WIDER_MODE (wider_mode); wider_mode = GET_MODE_WIDER_MODE (wider_mode);
} while (wider_mode != VOIDmode); }
while (wider_mode != VOIDmode);
abort (); abort ();
} }
...@@ -4014,7 +4015,7 @@ void ...@@ -4014,7 +4015,7 @@ void
emit_indirect_jump (loc) emit_indirect_jump (loc)
rtx loc; rtx loc;
{ {
if (! ((*insn_data[(int)CODE_FOR_indirect_jump].operand[0].predicate) if (! ((*insn_data[(int) CODE_FOR_indirect_jump].operand[0].predicate)
(loc, Pmode))) (loc, Pmode)))
loc = copy_to_mode_reg (Pmode, loc); loc = copy_to_mode_reg (Pmode, loc);
...@@ -5021,7 +5022,7 @@ init_libfuncs (optable, first_mode, last_mode, opname, suffix) ...@@ -5021,7 +5022,7 @@ init_libfuncs (optable, first_mode, last_mode, opname, suffix)
for (mode = first_mode; (int) mode <= (int) last_mode; for (mode = first_mode; (int) mode <= (int) last_mode;
mode = (enum machine_mode) ((int) mode + 1)) mode = (enum machine_mode) ((int) mode + 1))
{ {
const char *mname = GET_MODE_NAME(mode); const char *mname = GET_MODE_NAME (mode);
unsigned mname_len = strlen (mname); unsigned mname_len = strlen (mname);
char *libfunc_name = alloca (2 + opname_len + mname_len + 1 + 1); char *libfunc_name = alloca (2 + opname_len + mname_len + 1 + 1);
char *p; char *p;
...@@ -5479,7 +5480,7 @@ gen_cond_trap (code, op1, op2, tcode) ...@@ -5479,7 +5480,7 @@ gen_cond_trap (code, op1, op2, tcode)
&& cmp_optab->handlers[(int) mode].insn_code != CODE_FOR_nothing) && cmp_optab->handlers[(int) mode].insn_code != CODE_FOR_nothing)
{ {
rtx insn; rtx insn;
start_sequence(); start_sequence ();
emit_insn (GEN_FCN (cmp_optab->handlers[(int) mode].insn_code) (op1, op2)); emit_insn (GEN_FCN (cmp_optab->handlers[(int) mode].insn_code) (op1, op2));
PUT_CODE (trap_rtx, code); PUT_CODE (trap_rtx, code);
insn = gen_conditional_trap (trap_rtx, tcode); insn = gen_conditional_trap (trap_rtx, tcode);
...@@ -5488,7 +5489,7 @@ gen_cond_trap (code, op1, op2, tcode) ...@@ -5488,7 +5489,7 @@ gen_cond_trap (code, op1, op2, tcode)
emit_insn (insn); emit_insn (insn);
insn = get_insns (); insn = get_insns ();
} }
end_sequence(); end_sequence ();
return insn; return insn;
} }
#endif #endif
......
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