https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67049

--- Comment #1 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
My bad.  Could you please try this patch?

diff --git a/config/sh/sh.md b/config/sh/sh.md
index a86eaad..387ffe3 100644
--- a/config/sh/sh.md
+++ b/config/sh/sh.md
@@ -10597,7 +10597,7 @@ label:
   if (TARGET_SHMEDIA)
     {
       rtx tr = gen_rtx_REG (Pmode, TR0_REG);
-      rtx pic = operands[0];
+      rtx pic = operands[1];
       rtx lab = PATTERN (gen_call_site ());
       rtx insn, equiv;

Reply via email to