Skip to content

hexagon: TCG test coverage + ubsan fixes

Brian Cain qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest17 patches 1 replyIn review
  2. v117 patches 17 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17tests/tcg/hexagon: fix undefined signed left shift in circ.ctests/tcg/hexagon/circ.c+3 -30 replies
2/17tests/tcg/hexagon: fix undefined signed left shift in brev.ctests/tcg/hexagon/brev.c+1 -10 replies
3/17tests/tcg/hexagon: fix undefined signed integer overflow in hvx_misctests/tcg/hexagon/hvx_misc.c tests/tcg/hexagon/hvx_misc.h+10 -90 replies
4/17tests/tcg/hexagon: fix undefined integer overflow in v69_hvx.ctests/tcg/hexagon/v69_hvx.c+2 -10 replies
5/17tests/tcg/multiarch: suppress UBSan for float-to-int conversionstests/tcg/multiarch/float_convd.c tests/tcg/multiarch/float_convs.c+2 -00 replies
6/17tests/tcg/hexagon: add FP classification, conversion, and fixup teststests/tcg/hexagon/fpstuff.c+175 -00 replies
7/17tests/tcg/hexagon: add bit interleave and convergent rounding teststests/tcg/hexagon/meson.build tests/tcg/hexagon/test_bitops.c+99 -00 replies
8/17tests/tcg/hexagon: add cond call, tstbit-jump, and endloop01 teststests/tcg/hexagon/meson.build tests/tcg/hexagon/test_cond_branch.c+163 -00 replies
9/17tests/tcg/hexagon: add dczeroa cache line zero testtests/tcg/hexagon/meson.build tests/tcg/hexagon/test_dczeroa.c+89 -00 replies
10/17tests/tcg/hexagon: add HVX vwhist teststests/tcg/hexagon/hex_test.h tests/tcg/hexagon/meson.build tests/tcg/hexagon/test_vwhist.c+356 -01 reply
11/17tests/tcg/hexagon: add sfrecipa edge case teststests/tcg/hexagon/fpstuff.c+81 -00 replies
12/17tests/tcg/hexagon: add dfmpyhhtests/tcg/hexagon/fpstuff.c+57 -00 replies
13/17tests/tcg/hexagon: add unconditional store-immediate teststests/tcg/hexagon/misc.c+44 -00 replies
14/17tests/tcg/hexagon: add predicate register transfer testtests/tcg/hexagon/misc.c+26 -00 replies
15/17tests/tcg/hexagon: add rounding conv, sffma:lib, and sfinvsqrtatests/tcg/hexagon/fpstuff.c+99 -00 replies
16/17tests/tcg/hexagon: add scalar+HVX and masked store teststests/tcg/hexagon/hvx_misc.c+66 -00 replies
17/17tests/tcg/hexagon: add decbin MPS test casetests/tcg/hexagon/misc.c+9 -00 replies

Reviews trailers per patch

All 17 patches have a Reviewed-by or Acked-by.

PatchSid ManningPierrick Bouvier
1/17R-b
2/17R-b
3/17R-b
4/17R-b
5/17R-b
6/17R-b
7/17R-b
8/17R-b
9/17R-b
10/17R-b
11/17R-b
12/17R-b
13/17R-b
14/17R-b
15/17R-b
16/17R-b
17/17R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/17] hexagon: TCG test coverage + ubsan fixes

Running a coverage build identified some gaps in the coverage of translation code. New tests are added here to close some of those gaps.

After running ubsan on the hexagon TCG tests, some tests were flagged as having undefined behavior. Fixes for many of those issues are included.

In v2:
- updated vwhist test to use the check32() from hex_test.h, moved check16() there.

v1: https://lore.kernel.org/qemu-devel/[email protected]/

Brian Cain (17):
tests/tcg/hexagon: fix undefined signed left shift in circ.c tests/tcg/hexagon: fix undefined signed left shift in brev.c tests/tcg/hexagon: fix undefined signed integer overflow in hvx_misc tests/tcg/hexagon: fix undefined integer overflow in v69_hvx.c tests/tcg/multiarch: suppress UBSan for float-to-int conversions tests/tcg/hexagon: add FP classification, conversion, and fixup tests tests/tcg/hexagon: add bit interleave and convergent rounding tests tests/tcg/hexagon: add cond call, tstbit-jump, and endloop01 tests tests/tcg/hexagon: add dczeroa cache line zero test tests/tcg/hexagon: add HVX vwhist tests
tests/tcg/hexagon: add sfrecipa edge case tests tests/tcg/hexagon: add dfmpyhh
tests/tcg/hexagon: add unconditional store-immediate tests tests/tcg/hexagon: add predicate register transfer test tests/tcg/hexagon: add rounding conv, sffma:lib, and sfinvsqrta tests/tcg/hexagon: add scalar+HVX and masked store tests tests/tcg/hexagon: add decbin MPS test case

 tests/tcg/hexagon/hex_test.h         |  10 +
 tests/tcg/hexagon/hvx_misc.h         |   1 +
 tests/tcg/hexagon/brev.c             |   2 +-
 tests/tcg/hexagon/circ.c             |   6 +-
 tests/tcg/hexagon/fpstuff.c          | 412 +++++++++++++++++++++++++++
 tests/tcg/hexagon/hvx_misc.c         |  84 +++++-
 tests/tcg/hexagon/misc.c             |  79 +++++
 tests/tcg/hexagon/test_bitops.c      |  98 +++++++
 tests/tcg/hexagon/test_cond_branch.c | 162 +++++++++++
 tests/tcg/hexagon/test_dczeroa.c     |  88 ++++++
 tests/tcg/hexagon/test_vwhist.c      | 345 ++++++++++++++++++++++
 tests/tcg/hexagon/v69_hvx.c          |   3 +-
 tests/tcg/multiarch/float_convd.c    |   1 +
 tests/tcg/multiarch/float_convs.c    |   1 +
 tests/tcg/hexagon/meson.build        |   4 +
 15 files changed, 1282 insertions(+), 14 deletions(-)
 create mode 100644 tests/tcg/hexagon/test_bitops.c
 create mode 100644 tests/tcg/hexagon/test_cond_branch.c
 create mode 100644 tests/tcg/hexagon/test_dczeroa.c
 create mode 100644 tests/tcg/hexagon/test_vwhist.c
Signature · 1 line
2.34.1