From: Catherine Moore Date: Fri, 20 Jul 2001 13:42:57 +0000 (+0000) Subject: v850.md (casesi): Generate LABEL_REF with Pmode. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a97685a1d5f7dfbd9152cdff92f3f483c81b9dc;p=gcc.git v850.md (casesi): Generate LABEL_REF with Pmode. * config/v850/v850.md (casesi): Generate LABEL_REF with Pmode. From-SVN: r44197 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 656ad64ee46..b846765c5bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-20 Catherine Moore + + * config/v850/v850.md (casesi): Generate LABEL_REF + with Pmode. + Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka * i386-protos.h (ix86_zero_extend_to_Pmode): Declare. diff --git a/gcc/config/v850/v850.md b/gcc/config/v850/v850.md index 4308e07e5ac..354dc111ba4 100644 --- a/gcc/config/v850/v850.md +++ b/gcc/config/v850/v850.md @@ -944,7 +944,7 @@ emit_insn (gen_ashlsi3 (reg, reg, GEN_INT (TARGET_BIG_SWITCH ? 2 : 1))); /* Load the table address into a pseudo. */ emit_insn (gen_movsi (tableaddress, - gen_rtx_LABEL_REF (VOIDmode, operands[3]))); + gen_rtx_LABEL_REF (Pmode, operands[3]))); /* Add the table address to the index. */ emit_insn (gen_addsi3 (reg, reg, tableaddress)); /* Load the table entry. */