Lower TCG vector ops to LSX
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest16 patches 3 repliesIn review
- v316 patches 7 repliesSuperseded
- v214 patches 11 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 11 patches | 13 replies | Superseded |
Changes in v4 from the cover letter
- Refactor add/sub_vec handling code to use a helper function
- Only use vldx/vstx for MO_128 load/store, otherwise fallback to two ld/st
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | tcg/loongarch64: Import LSX instructionstcg/ | +6134 | 0 replies | |
| 2/16 | tcg/loongarch64: Lower basic tcg vec ops to LSXtcg/ tcg/ tcg/ +2 more | +270 | 0 replies | |
| 3/16 | tcg: pass vece to tcg_target_const_match()tcg/ tcg/ tcg/ +8 more | +12 | 1 reply | |
| 4/16 | tcg/loongarch64: Lower cmp_vec to vseq/vsle/vslttcg/ tcg/ tcg/ | +67 | 0 replies | |
| 5/16 | tcg/loongarch64: Lower add/sub_vec to vadd/vsubtcg/ tcg/ tcg/ | +63 | 1 reply | |
| 6/16 | tcg/loongarch64: Lower vector bitwise operationstcg/ tcg/ tcg/ | +50 | 0 replies | |
| 7/16 | tcg/loongarch64: Lower neg_vec to vnegtcg/ tcg/ | +9 | 0 replies | |
| 8/16 | tcg/loongarch64: Lower mul_vec to vmultcg/ tcg/ | +9 | 0 replies | |
| 9/16 | tcg/loongarch64: Lower vector min max opstcg/ tcg/ | +33 | 0 replies | |
| 10/16 | tcg/loongarch64: Lower vector saturated opstcg/ tcg/ | +33 | 0 replies | |
| 11/16 | tcg/loongarch64: Lower vector shift vector opstcg/ tcg/ | +25 | 0 replies | |
| 12/16 | tcg/loongarch64: Lower bitsel_vec to vbitseltcg/ tcg/ tcg/ | +12 | 0 replies | |
| 13/16 | tcg/loongarch64: Lower vector shift integer opstcg/ tcg/ | +22 | 0 replies | |
| 14/16 | tcg/loongarch64: Lower rotv_vec ops to LSXtcg/ tcg/ | +15 | 0 replies | |
| 15/16 | tcg/loongarch64: Lower rotli_vec to vrotritcg/ tcg/ | +22 | 0 replies | |
| 16/16 | tcg/loongarch64: Implement 128-bit load & storetcg/ tcg/ tcg/ | +62 | 1 reply |
Reviews trailers per patch
All 16 patches have a Reviewed-by or Acked-by.
| Patch | Richard Henderson | Philippe Mathieu-Daudé |
|---|---|---|
| 1/16 | A-b | |
| 2/16 | R-b | |
| 3/16 | R-b | R-b |
| 4/16 | R-b | |
| 5/16 | R-b | |
| 6/16 | R-b | |
| 7/16 | R-b | |
| 8/16 | R-b | |
| 9/16 | R-b | |
| 10/16 | R-b | |
| 11/16 | R-b | |
| 12/16 | R-b | |
| 13/16 | R-b | |
| 14/16 | R-b | |
| 15/16 | R-b | |
| 16/16 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 00/16] Lower TCG vector ops to LSX
This patch series allows qemu to utilize LSX instructions on LoongArch machines to execute TCG vector ops.
Passed tcg tests with x86_64 and aarch64 cross compilers.
Changes since v3:
- Refactor add/sub_vec handling code to use a helper function
- Only use vldx/vstx for MO_128 load/store, otherwise fallback to two ld/st
Changes since v2:
- Add vece argument to tcg_target_const_match() for const args of vector ops
- Use custom constraint for cmp_vec/add_vec/sub_vec for better const arg handling
- Implement 128-bit load & store using vldx/vstx
Changes since v1:
- Optimize dupi_vec/st_vec/ld_vec/cmp_vec/add_vec/sub_vec generation
- Lower not_vec/shi_vec/roti_vec/rotv_vec
Jiajie Chen (16):
tcg/loongarch64: Import LSX instructions tcg/loongarch64: Lower basic tcg vec ops to LSX
tcg: pass vece to tcg_target_const_match() tcg/loongarch64: Lower cmp_vec to vseq/vsle/vslt tcg/loongarch64: Lower add/sub_vec to vadd/vsub tcg/loongarch64: Lower vector bitwise operations tcg/loongarch64: Lower neg_vec to vneg tcg/loongarch64: Lower mul_vec to vmul tcg/loongarch64: Lower vector min max ops tcg/loongarch64: Lower vector saturated ops tcg/loongarch64: Lower vector shift vector ops tcg/loongarch64: Lower bitsel_vec to vbitsel tcg/loongarch64: Lower vector shift integer ops tcg/loongarch64: Lower rotv_vec ops to LSX tcg/loongarch64: Lower rotli_vec to vrotri tcg/loongarch64: Implement 128-bit load & store
tcg/aarch64/tcg-target.c.inc | 2 +- tcg/arm/tcg-target.c.inc | 2 +- tcg/i386/tcg-target.c.inc | 2 +- tcg/loongarch64/tcg-insn-defs.c.inc | 6251 +++++++++++++++++++++++++- tcg/loongarch64/tcg-target-con-set.h | 9 + tcg/loongarch64/tcg-target-con-str.h | 3 + tcg/loongarch64/tcg-target.c.inc | 619 ++- tcg/loongarch64/tcg-target.h | 40 +- tcg/loongarch64/tcg-target.opc.h | 12 + tcg/mips/tcg-target.c.inc | 2 +- tcg/ppc/tcg-target.c.inc | 2 +- tcg/riscv/tcg-target.c.inc | 2 +- tcg/s390x/tcg-target.c.inc | 2 +- tcg/sparc64/tcg-target.c.inc | 2 +- tcg/tcg.c | 4 +- tcg/tci/tcg-target.c.inc | 2 +- 16 files changed, 6824 insertions(+), 132 deletions(-) create mode 100644 tcg/loongarch64/tcg-target.opc.h
Signature · 1 line
2.42.0