On 4/7/23 22:52, Taylor Simpson wrote:
Currently, idef-parser skips all floating point instructions.  However,
there are some floating point instructions that can be handled.

The following instructions are now parsed
     F2_sfimm_p
     F2_sfimm_n
     F2_dfimm_p
     F2_dfimm_n
     F2_dfmpyll
     F2_dfmpylh

To make these instructions work, we fix some bugs in parser-helpers.c
     gen_rvalue_extend
     gen_cast_op

Test cases added to tests/tcg/hexagon/fpstuff.c

Signed-off-by: Taylor Simpson <tsimp...@quicinc.com>
---
  target/hexagon/idef-parser/parser-helpers.c | 16 +++---
  tests/tcg/hexagon/fpstuff.c                 | 54 +++++++++++++++++++++
  target/hexagon/gen_idef_parser_funcs.py     | 10 +++-
  3 files changed, 72 insertions(+), 8 deletions(-)

This patch looks good, nice catch on the bugs!

Reviewed-by: Anton Johansson <a...@rev.ng>
Tested-by: Anton Johansson <a...@rev.ng>


Reply via email to