Lines Matching refs:extract32

302 #define GET_B_IMM(inst) ((extract32(inst, 8, 4) << 1) \
303 | (extract32(inst, 25, 6) << 5) \
304 | (extract32(inst, 7, 1) << 11) \
307 #define GET_STORE_IMM(inst) ((extract32(inst, 7, 5)) \
310 #define GET_JAL_IMM(inst) ((extract32(inst, 21, 10) << 1) \
311 | (extract32(inst, 20, 1) << 11) \
312 | (extract32(inst, 12, 8) << 12) \
315 #define GET_FUNCT3(inst) extract32(inst, 12, 3)
316 #define GET_FUNCT7(inst) extract32(inst, 25, 7)
317 #define GET_RM(inst) extract32(inst, 12, 3)
318 #define GET_RS3(inst) extract32(inst, 27, 5)
319 #define GET_RS1(inst) extract32(inst, 15, 5)
320 #define GET_RS2(inst) extract32(inst, 20, 5)
321 #define GET_RD(inst) extract32(inst, 7, 5)
331 #define GET_C_IMM(inst) (extract32(inst, 2, 5) \
333 #define GET_C_ZIMM(inst) (extract32(inst, 2, 5) \
334 | (extract32(inst, 12, 1) << 5))
335 #define GET_C_ADDI4SPN_IMM(inst) ((extract32(inst, 6, 1) << 2) \
336 | (extract32(inst, 5, 1) << 3) \
337 | (extract32(inst, 11, 2) << 4) \
338 | (extract32(inst, 7, 4) << 6))
339 #define GET_C_ADDI16SP_IMM(inst) ((extract32(inst, 6, 1) << 4) \
340 | (extract32(inst, 2, 1) << 5) \
341 | (extract32(inst, 5, 1) << 6) \
342 | (extract32(inst, 3, 2) << 7) \
344 #define GET_C_LWSP_IMM(inst) ((extract32(inst, 4, 3) << 2) \
345 | (extract32(inst, 12, 1) << 5) \
346 | (extract32(inst, 2, 2) << 6))
347 #define GET_C_LDSP_IMM(inst) ((extract32(inst, 5, 2) << 3) \
348 | (extract32(inst, 12, 1) << 5) \
349 | (extract32(inst, 2, 3) << 6))
350 #define GET_C_SWSP_IMM(inst) ((extract32(inst, 9, 4) << 2) \
351 | (extract32(inst, 7, 2) << 6))
352 #define GET_C_SDSP_IMM(inst) ((extract32(inst, 10, 3) << 3) \
353 | (extract32(inst, 7, 3) << 6))
354 #define GET_C_LW_IMM(inst) ((extract32(inst, 6, 1) << 2) \
355 | (extract32(inst, 10, 3) << 3) \
356 | (extract32(inst, 5, 1) << 6))
361 #define GET_C_J_IMM(inst) ((extract32(inst, 3, 3) << 1) \
362 | (extract32(inst, 11, 1) << 4) \
363 | (extract32(inst, 2, 1) << 5) \
364 | (extract32(inst, 7, 1) << 6) \
365 | (extract32(inst, 6, 1) << 7) \
366 | (extract32(inst, 9, 2) << 8) \
367 | (extract32(inst, 8, 1) << 10) \
369 #define GET_C_B_IMM(inst) ((extract32(inst, 3, 2) << 1) \
370 | (extract32(inst, 10, 2) << 3) \
371 | (extract32(inst, 2, 1) << 5) \
372 | (extract32(inst, 5, 2) << 6) \
374 #define GET_C_SIMM3(inst) extract32(inst, 10, 3)
377 #define GET_C_RS2(inst) extract32(inst, 2, 5)
381 #define GET_C_FUNC(inst) extract32(inst, 13, 3)
382 #define GET_C_OP(inst) extract32(inst, 0, 2)