diff --git a/librz/arch/isa/tricore/tricore_il_fp.inc b/librz/arch/isa/tricore/tricore_il_fp.inc index a60a0d45aab..1cfc53d0edd 100644 --- a/librz/arch/isa/tricore/tricore_il_fp.inc +++ b/librz/arch/isa/tricore/tricore_il_fp.inc @@ -1,10 +1,13 @@ // SPDX-FileCopyrightText: 2024 billow // SPDX-License-Identifier: LGPL-3.0-only +/// The maximum of IEEE-754-2008 16-bit half precision floating point static const ut32 HP_MAX_VALUE = 65504; +/// The minimum positive normalized number of IEEE-754-2008 16-bit half precision floating point static const ut32 HP_MIN_NORMAL = 1024 * 16; - +/// This represents all positive numbers that are too big to be represented accurately as a normalized number. static const ut32 HP_NEG_INFINITY = 0xfc00; +/// This represents all negative numbers with an absolute value that is too big to be represented accurately as a normalized number. static const ut32 HP_POS_INFINITY = 0x7c00; #define F2SINT32(x, m) F2SINT(32, m, x) @@ -92,7 +95,9 @@ static RzILOpPure *minmax(const char *k, st64 min, st64 max, RzILOpPure *x) { x))); } +// The maximum of the Q31 format value #define Q31_MAX q_real(0x7FFFFFFF) +// The minimum of the Q31 format value #define Q31_MIN F32(-1.f) static RzILOpPure *minmax_q31(const char *k, RzILOpPure *x) { diff --git a/librz/arch/p/analysis/analysis_tricore_cs.c b/librz/arch/p/analysis/analysis_tricore_cs.c index 9eb7a218856..3e2ceaf4122 100644 --- a/librz/arch/p/analysis/analysis_tricore_cs.c +++ b/librz/arch/p/analysis/analysis_tricore_cs.c @@ -240,11 +240,11 @@ static char *tricore_reg_profile(RzAnalysis *_) { "drx FPU_TRAP_SRC1 .32 816 0\n" "drx FPU_TRAP_SRC2 .32 820 0\n" "drx FPU_TRAP_SRC3 .32 824 0\n" - "drx set_FI .1 900 0\n" - "drx set_FV .1 901 0\n" - "drx set_FZ .1 902 0\n" - "drx set_FU .1 903 0\n" - "drx set_FX .1 904 0\n"; + "drx set_FI .1 900 0\n" + "drx set_FV .1 901 0\n" + "drx set_FZ .1 902 0\n" + "drx set_FU .1 903 0\n" + "drx set_FX .1 904 0\n"; return strdup(p); } diff --git a/librz/include/rz_il/rz_il_opbuilder_end.h b/librz/include/rz_il/rz_il_opbuilder_end.h index 1241793e8d8..a2b24ea2843 100644 --- a/librz/include/rz_il/rz_il_opbuilder_end.h +++ b/librz/include/rz_il/rz_il_opbuilder_end.h @@ -55,7 +55,7 @@ #undef FMOD #undef FPOW #undef FMAD -#undef FNEQ +#undef FEQ #undef FEQ #undef FLT #undef FLE