Use tcg_gen_ussub_i64 for WHILEWR.
Merge diff == 0 test with bounds check.

r~

Richard Henderson (3):
  tcg: Export tcg_gen_ussub_i{32,64,tl}
  target/arm: Fix SVE2 WHILEWR/WHILERW zero diff boundary case
  tests/tcg/aarch64: Add regression test for whilewr/whilerw

 include/tcg/tcg-op-common.h       |  2 ++
 include/tcg/tcg-op.h              |  2 ++
 target/arm/tcg/translate-sve.c    | 38 +++++++++++++++++++------------
 tcg/tcg-op-gvec.c                 | 14 ------------
 tcg/tcg-op.c                      | 20 ++++++++++++++++
 tests/tcg/aarch64/sve-while-ptr.c | 28 +++++++++++++++++++++++
 tests/tcg/aarch64/Makefile.target |  5 ++--
 7 files changed, 79 insertions(+), 30 deletions(-)
 create mode 100644 tests/tcg/aarch64/sve-while-ptr.c

-- 
2.43.0


Reply via email to