Lines Matching refs:RV_X
102 #define RV_X(x, s, n) (((x) >> (s)) & ((1 << (n)) - 1)) macro
103 #define RVC_LW_IMM(x) ((RV_X(x, 6, 1) << 2) | \
104 (RV_X(x, 10, 3) << 3) | \
105 (RV_X(x, 5, 1) << 6))
106 #define RVC_LD_IMM(x) ((RV_X(x, 10, 3) << 3) | \
107 (RV_X(x, 5, 2) << 6))
108 #define RVC_LWSP_IMM(x) ((RV_X(x, 4, 3) << 2) | \
109 (RV_X(x, 12, 1) << 5) | \
110 (RV_X(x, 2, 2) << 6))
111 #define RVC_LDSP_IMM(x) ((RV_X(x, 5, 2) << 3) | \
112 (RV_X(x, 12, 1) << 5) | \
113 (RV_X(x, 2, 3) << 6))
114 #define RVC_SWSP_IMM(x) ((RV_X(x, 9, 4) << 2) | \
115 (RV_X(x, 7, 2) << 6))
116 #define RVC_SDSP_IMM(x) ((RV_X(x, 10, 3) << 3) | \
117 (RV_X(x, 7, 3) << 6))
118 #define RVC_RS1S(insn) (8 + RV_X(insn, SH_RD, 3))
119 #define RVC_RS2S(insn) (8 + RV_X(insn, SH_RS2C, 3))
120 #define RVC_RS2(insn) RV_X(insn, SH_RS2C, 5)