Lines Matching refs:rs1

165 #define	FBT_FMT3_RS1_SET(val, rs1) \  argument
166 (val) = ((val) & ~FBT_FMT3_RS1_MASK) | ((rs1) << FBT_FMT3_RS1_SHIFT)
227 #define FBT_ADD(rs1, rs2, rd) \ argument
228 (FBT_OP_ADD | ((rs1) << FBT_FMT3_RS1_SHIFT) | \
231 #define FBT_CMP(rs1, rs2) \ argument
232 (FBT_OP_SUB | FBT_OP_CC | ((rs1) << FBT_FMT3_RS1_SHIFT) | \
249 #define FBT_SAVEIMM(rd, val, rs1) \ argument
250 (FBT_OP_SAVE | ((rs1) << FBT_FMT3_RS1_SHIFT) | \
253 #define FBT_RESTORE(rd, rs1, rs2) \ argument
254 (FBT_OP_RESTORE | ((rs1) << FBT_FMT3_RS1_SHIFT) | \
257 #define FBT_RETURN(rs1, val) \ argument
258 (FBT_OP_RETURN | ((rs1) << FBT_FMT3_RS1_SHIFT) | \
687 uint32_t cti = *instr, restore = *(instr + 1), rs1, dest; in fbt_patch_return() local
735 uint32_t rs1 = FBT_FMT3_RS1(cti); in fbt_patch_return() local
736 FBT_REG_MARKLOCAL(locals, rs1); in fbt_patch_return()
747 rs1 = FBT_FMT3_RS1(restore); in fbt_patch_return()
748 FBT_REG_MARKLOCAL(locals, rs1); in fbt_patch_return()
756 uint32_t rs1 = FBT_FMT3_RS1(cti); in fbt_patch_return() local
758 if (FBT_REG_ISVOLATILE(rs1)) { in fbt_patch_return()
761 *tinstr++ = FBT_MOV(rs1, local); in fbt_patch_return()
775 rs1 = FBT_FMT3_RS1(restore); in fbt_patch_return()
777 if (FBT_REG_ISVOLATILE(rs1)) { in fbt_patch_return()
780 *tinstr++ = FBT_MOV(rs1, local); in fbt_patch_return()
878 uint32_t rs1, rs2, o2i = FBT_REG_I0 - FBT_REG_O0; in fbt_patch_retl() local
886 rs1 = FBT_FMT3_RS1(cti); in fbt_patch_retl()
888 if (FBT_REG_ISOUTPUT(rs1)) in fbt_patch_retl()
889 rs1 += o2i; in fbt_patch_retl()
891 if (FBT_REG_ISGLOBAL(rs1)) { in fbt_patch_retl()
892 *tinstr++ = FBT_MOV(rs1, FBT_REG_L0); in fbt_patch_retl()
893 rs1 = FBT_REG_L0; in fbt_patch_retl()
896 FBT_FMT3_RS1_SET(cti, rs1); in fbt_patch_retl()
919 if (FBT_FMT3_RD(cti) != FBT_REG_O7 && rs1 != FBT_REG_I7) { in fbt_patch_retl()
926 *tinstr++ = FBT_ADDSIMM13(rs1, in fbt_patch_retl()
929 *tinstr++ = FBT_ADD(rs1, rs2, FBT_REG_L2); in fbt_patch_retl()