From 7a1080fa5c329ea8a9505e51ce151719955bcfa2 Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 4 Dec 2002 15:42:16 +0000 Subject: Gcc 3.2.1 release virgin vendor import. (19-Nov-2002) --- contrib/gcc/jump.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'contrib/gcc/jump.c') diff --git a/contrib/gcc/jump.c b/contrib/gcc/jump.c index 1a26b59..14baeed 100644 --- a/contrib/gcc/jump.c +++ b/contrib/gcc/jump.c @@ -1076,6 +1076,21 @@ simplejump_p (insn) && GET_CODE (SET_DEST (PATTERN (insn))) == PC && GET_CODE (SET_SRC (PATTERN (insn))) == LABEL_REF); } +/* Return 1 if INSN is an tablejump. */ + +int +tablejump_p (insn) + rtx insn; +{ + rtx table; + return (GET_CODE (insn) == JUMP_INSN + && JUMP_LABEL (insn) + && NEXT_INSN (JUMP_LABEL (insn)) + && (table = next_active_insn (JUMP_LABEL (insn))) + && GET_CODE (table) == JUMP_INSN + && (GET_CODE (PATTERN (table)) == ADDR_VEC + || GET_CODE (PATTERN (table)) == ADDR_DIFF_VEC)); +} /* Return nonzero if INSN is a (possibly) conditional jump and nothing more. -- cgit v1.1