On 2/6/26 10:38 AM, Brian Cain wrote:
When a non-duplex encoding (parse_bits != 0) fails both decode_normal()
and decode_hvx(), the decoder hit an unreachable.  Instead, handle
the decode failure and raise an exception.

Signed-off-by: Brian Cain <[email protected]>
---
  target/hexagon/decode.c              |  3 ++-
  tests/tcg/hexagon/invalid-encoding.c | 20 ++++++++++++++++++++
  tests/tcg/hexagon/Makefile.target    |  6 ++++++
  3 files changed, 28 insertions(+), 1 deletion(-)
  create mode 100644 tests/tcg/hexagon/invalid-encoding.c


Reviewed-by: Pierrick Bouvier <[email protected]>

Reply via email to