Lines Matching refs:rs2

172 #define	FBT_FMT3_RS2_SET(val, rs2) \  argument
173 (val) = ((val) & ~FBT_FMT3_RS2_MASK) | ((rs2) << FBT_FMT3_RS2_SHIFT)
227 #define FBT_ADD(rs1, rs2, rd) \ argument
229 ((rs2) << FBT_FMT3_RS2_SHIFT) | ((rd) << FBT_FMT3_RD_SHIFT))
231 #define FBT_CMP(rs1, rs2) \ argument
233 ((rs2) << FBT_FMT3_RS2_SHIFT) | (FBT_REG_G0 << FBT_FMT3_RD_SHIFT))
253 #define FBT_RESTORE(rd, rs1, rs2) \ argument
255 ((rd) << FBT_FMT3_RD_SHIFT) | ((rs2) << FBT_FMT3_RS2_SHIFT))
739 uint32_t rs2 = FBT_FMT3_RS2(cti); in fbt_patch_return() local
740 FBT_REG_MARKLOCAL(locals, rs2); in fbt_patch_return()
751 uint32_t rs2 = FBT_FMT3_RS2(restore); in fbt_patch_return() local
752 FBT_REG_MARKLOCAL(locals, rs2); in fbt_patch_return()
765 uint32_t rs2 = FBT_FMT3_RS2(cti); in fbt_patch_return() local
767 if (FBT_REG_ISVOLATILE(rs2)) { in fbt_patch_return()
770 *tinstr++ = FBT_MOV(rs2, local); in fbt_patch_return()
784 uint32_t rs2 = FBT_FMT3_RS2(restore); in fbt_patch_return() local
786 if (FBT_REG_ISVOLATILE(rs2)) { in fbt_patch_return()
789 *tinstr++ = FBT_MOV(rs2, local); in fbt_patch_return()
878 uint32_t rs1, rs2, o2i = FBT_REG_I0 - FBT_REG_O0; in fbt_patch_retl() local
899 rs2 = FBT_FMT3_RS2(cti); in fbt_patch_retl()
901 if (FBT_REG_ISOUTPUT(rs2)) in fbt_patch_retl()
902 rs2 += o2i; in fbt_patch_retl()
904 if (FBT_REG_ISGLOBAL(rs2)) { in fbt_patch_retl()
905 *tinstr++ = FBT_MOV(rs2, FBT_REG_L1); in fbt_patch_retl()
906 rs2 = FBT_REG_L1; in fbt_patch_retl()
909 FBT_FMT3_RS2_SET(cti, rs2); in fbt_patch_retl()
929 *tinstr++ = FBT_ADD(rs1, rs2, FBT_REG_L2); in fbt_patch_retl()