From ad2ed4715a1a79215e2e7034e4e855463536237f Mon Sep 17 00:00:00 2001 From: Rot127 Date: Mon, 13 Nov 2023 10:15:22 -0500 Subject: [PATCH] Add macros for floats --- handwritten/hexagon_il_h/macros.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/handwritten/hexagon_il_h/macros.h b/handwritten/hexagon_il_h/macros.h index 9064076a..213dd70f 100644 --- a/handwritten/hexagon_il_h/macros.h +++ b/handwritten/hexagon_il_h/macros.h @@ -16,6 +16,11 @@ #define HEX_STORE_SLOT_CANCELLED(pkt, slot) hex_cancel_slot(pkt, slot) #define HEX_FCIRC_ADD(bundle, RxV, offset, mu, CS) hex_fcircadd(bundle, RxV, offset, mu, CS) #define HEX_GET_CORRESPONDING_CS(pkt, Mu) hex_get_corresponding_cs(pkt, Mu) +#define HEX_GET_INSN_RMODE(insn) (insn->fround_mode) +#define HEX_D_TO_SINT(mode, fval) F2SINT(64, mode, fval) +#define HEX_F_TO_SINT(mode, fval) F2SINT(32, mode, fval) +#define HEX_D_TO_INT(mode, fval) F2INT(64, mode, fval) +#define HEX_F_TO_INT(mode, fval) F2INT(32, mode, fval) #define HEX_IMMUTABLE_REG (~0) #define HEX_NOT_MASKED 0