This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
i386 cleanup
- To: gcc-patches at gcc dot gnu dot org, rth at cygnus dot com, patches at x86-64 dot org
- Subject: i386 cleanup
- From: Jan Hubicka <jh at suse dot cz>
- Date: Thu, 11 Jan 2001 10:44:03 +0100
Hi
This patch just kills dead code.
Honza
Thu Jan 11 10:25:42 MET 2001 Jan Hubicka <jh@suse.cz>
* i386.c (unsigned_comparison, no_comparison_operator): Kill.
Index: egcs/gcc/config/i386//i386.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/i386.c,v
retrieving revision 1.197
diff -c -3 -p -r1.197 i386.c
*** i386.c 2001/01/10 15:39:55 1.197
--- i386.c 2001/01/11 09:22:20
*************** int ix86_align_jumps;
*** 386,392 ****
static void output_pic_addr_const PARAMS ((FILE *, rtx, int));
static void put_condition_code PARAMS ((enum rtx_code, enum machine_mode,
int, int, FILE *));
- static enum rtx_code unsigned_comparison PARAMS ((enum rtx_code code));
static rtx ix86_expand_int_compare PARAMS ((enum rtx_code, rtx, rtx));
static enum rtx_code ix86_prepare_fp_compare_args PARAMS ((enum rtx_code,
rtx *, rtx *));
--- 386,391 ----
*************** non_q_regs_operand (op, mode)
*** 1265,1294 ****
return NON_QI_REG_P (op);
}
- /* Return 1 if OP is a comparison operator that can use the condition code
- generated by a logical operation, which characteristicly does not set
- overflow or carry. To be used with CCNOmode. */
-
- int
- no_comparison_operator (op, mode)
- register rtx op;
- enum machine_mode mode;
- {
- if (mode != VOIDmode && GET_MODE (op) != mode)
- return 0;
-
- switch (GET_CODE (op))
- {
- case EQ: case NE:
- case LT: case GE:
- case LEU: case LTU: case GEU: case GTU:
- return 1;
-
- default:
- return 0;
- }
- }
-
/* Return 1 if OP is a comparison that can be used in the CMPSS/CMPPS
insns. */
int
--- 1264,1269 ----
*************** ix86_match_ccmode (insn, req_mode)
*** 4609,4649 ****
return (GET_MODE (SET_SRC (set)) == set_mode);
}
- /* Produce an unsigned comparison for a given signed comparison. */
-
- static enum rtx_code
- unsigned_comparison (code)
- enum rtx_code code;
- {
- switch (code)
- {
- case GT:
- code = GTU;
- break;
- case LT:
- code = LTU;
- break;
- case GE:
- code = GEU;
- break;
- case LE:
- code = LEU;
- break;
- case EQ:
- case NE:
- case LEU:
- case LTU:
- case GEU:
- case GTU:
- case UNORDERED:
- case ORDERED:
- break;
- default:
- abort ();
- }
- return code;
- }
-
/* Generate insn patterns to do an integer compare of OPERANDS. */
static rtx
--- 4615,4620 ----