static inline void tcg_out_ld_ptr(TCGContext *s, int ret,

                                  tcg_target_long arg)

{

#if defined(__sparc_v9__) && !defined(__sparc_v8plus__)

    if (arg != (arg & 0xffffffff))

        fprintf(stderr, "unimplemented %s with offset %ld\n", __func__, arg);

    if (arg != (arg & 0xfff))

        tcg_out32(s, SETHI | INSN_RD(ret) | (((uint32_t)arg & 0xfffffc00) >> 10));

    tcg_out32(s, LDX | INSN_RD(ret) | INSN_RS1(ret) |

              INSN_IMM13(arg & 0x3ff));

#else

    tcg_out_ld_raw(s, ret, arg);

#endif

}

static inline void tcg_out_ld_ptr(TCGContext *s, int ret,

                                  tcg_target_long arg)

{

#if defined(__sparc_v9__) && !defined(__sparc_v8plus__)

    if (arg != (arg & 0xffffffff))

        fprintf(stderr, "unimplemented %s with offset %ld\n", __func__, arg);

    if (arg != (arg & 0xfff))

        tcg_out32(s, SETHI | INSN_RD(ret) | (((uint32_t)arg & 0xfffffc00) >> 10));

    tcg_out32(s, LDX | INSN_RD(ret) | INSN_RS1(ret) |

              INSN_IMM13(arg & 0x3ff));

#else

    tcg_out_ld_raw(s, ret, arg);

#endif

}

static inline void FUNC_0(TCGContext *VAR_0, int VAR_1,

                                  tcg_target_long VAR_2)

{

#if defined(__sparc_v9__) && !defined(__sparc_v8plus__)

    if (VAR_2 != (VAR_2 & 0xffffffff))

        fprintf(stderr, "unimplemented %VAR_0 with offset %ld\n", __func__, VAR_2);

    if (VAR_2 != (VAR_2 & 0xfff))

        tcg_out32(VAR_0, SETHI | INSN_RD(VAR_1) | (((uint32_t)VAR_2 & 0xfffffc00) >> 10));

    tcg_out32(VAR_0, LDX | INSN_RD(VAR_1) | INSN_RS1(VAR_1) |

              INSN_IMM13(VAR_2 & 0x3ff));

#else

    tcg_out_ld_raw(VAR_0, VAR_1, VAR_2);

#endif

}

static inline void FUNC_0(TCGContext *VAR_0, int VAR_1,
tcg_target_long VAR_2)
{ #if defined(__sparc_v9__) && !defined(__sparc_v8plus__)
if (VAR_2 != (VAR_2 & 0xffffffff))
fprintf(stderr, "unimplemented %VAR_0 with offset %ld\n", __func__, VAR_2); if (VAR_2 != (VAR_2 & 0xfff))
tcg_out32(VAR_0, SETHI | INSN_RD(VAR_1) | (((uint32_t)VAR_2 & 0xfffffc00) >> 10)); tcg_out32(VAR_0, LDX | INSN_RD(VAR_1) | INSN_RS1(VAR_1) |
INSN_IMM13(VAR_2 & 0x3ff)); #else
tcg_out_ld_raw(VAR_0, VAR_1, VAR_2); #endif
}