[PATCH v3 0/9] VDIV/VMOD Implementation

Lucas Mateus Castro(alqotel) posted 9 patches 2 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220420194037.263661-1-lucas.araujo@eldorado.org.br
Maintainers: "Cédric Le Goater" <clg@kaod.org>, Daniel Henrique Barboza <danielhb413@gmail.com>, David Gibson <david@gibson.dropbear.id.au>, Greg Kurz <groug@kaod.org>
include/qemu/host-utils.h           |   3 +
include/qemu/int128.h               |  57 +++++++++
target/ppc/helper.h                 |   8 ++
target/ppc/insn32.decode            |  23 ++++
target/ppc/int_helper.c             | 106 ++++++++++++++++
target/ppc/translate/vmx-impl.c.inc | 155 ++++++++++++++++++++++++
tests/unit/test-int128.c            |  32 +++++
util/host-utils.c                   | 180 ++++++++++++++++++++++++++++
8 files changed, 564 insertions(+)
[PATCH v3 0/9] VDIV/VMOD Implementation
Posted by Lucas Mateus Castro(alqotel) 2 years ago
From: "Lucas Mateus Castro (alqotel)" <lucas.araujo@eldorado.org.br>

This patch series is an implementation of the vector divide, vector
divide extended and vector modulo instructions from PowerISA 3.1

The first patch are Matheus' patch, used here since the divs256 and
divu256 functions use int128_urshift.

Patches without review: 2, 4, 5 and 8

v3 changes:
    - Divided DO_VDIV_VMOD macro in 4 different new macros
    - Turned TRANS_VDIV_VMOD into a function and the instructions are
      now implemented with the TRANS macro and do_vdiv_vmod function
    - Moved clz128 to int128.h

v2 changes:
    - Dropped int128_lshift patch
    - Added missing int_min/-1 check
    - Changed invalid division to a division by 1
    - Created new macro responsible for invalid division check
      (replacing DIV_VEC, REM_VEC and the check in dives_i32/diveu_i32)
    - Turned GVecGen3 array into single element

Lucas Mateus Castro (alqotel) (8):
  target/ppc: Implemented vector divide instructions
  target/ppc: Implemented vector divide quadword
  target/ppc: Implemented vector divide extended word
  host-utils: Implemented unsigned 256-by-128 division
  host-utils: Implemented signed 256-by-128 division
  target/ppc: Implemented remaining vector divide extended
  target/ppc: Implemented vector module word/doubleword
  target/ppc: Implemented vector module quadword

Matheus Ferst (1):
  qemu/int128: add int128_urshift

 include/qemu/host-utils.h           |   3 +
 include/qemu/int128.h               |  57 +++++++++
 target/ppc/helper.h                 |   8 ++
 target/ppc/insn32.decode            |  23 ++++
 target/ppc/int_helper.c             | 106 ++++++++++++++++
 target/ppc/translate/vmx-impl.c.inc | 155 ++++++++++++++++++++++++
 tests/unit/test-int128.c            |  32 +++++
 util/host-utils.c                   | 180 ++++++++++++++++++++++++++++
 8 files changed, 564 insertions(+)

-- 
2.31.1
Re: [PATCH v3 0/9] VDIV/VMOD Implementation
Posted by Lucas Mateus Martins Araujo e Castro 1 year, 11 months ago
ping

On 20/04/2022 16:40, Lucas Mateus Castro(alqotel) wrote:
> From: "Lucas Mateus Castro (alqotel)"<lucas.araujo@eldorado.org.br>
>
> This patch series is an implementation of the vector divide, vector
> divide extended and vector modulo instructions from PowerISA 3.1
>
> The first patch are Matheus' patch, used here since the divs256 and
> divu256 functions use int128_urshift.
>
> Patches without review: 2, 4, 5 and 8
>
> v3 changes:
>      - Divided DO_VDIV_VMOD macro in 4 different new macros
>      - Turned TRANS_VDIV_VMOD into a function and the instructions are
>        now implemented with the TRANS macro and do_vdiv_vmod function
>      - Moved clz128 to int128.h
>
> v2 changes:
>      - Dropped int128_lshift patch
>      - Added missing int_min/-1 check
>      - Changed invalid division to a division by 1
>      - Created new macro responsible for invalid division check
>        (replacing DIV_VEC, REM_VEC and the check in dives_i32/diveu_i32)
>      - Turned GVecGen3 array into single element
>
> Lucas Mateus Castro (alqotel) (8):
>    target/ppc: Implemented vector divide instructions
>    target/ppc: Implemented vector divide quadword
>    target/ppc: Implemented vector divide extended word
>    host-utils: Implemented unsigned 256-by-128 division
>    host-utils: Implemented signed 256-by-128 division
>    target/ppc: Implemented remaining vector divide extended
>    target/ppc: Implemented vector module word/doubleword
>    target/ppc: Implemented vector module quadword
>
> Matheus Ferst (1):
>    qemu/int128: add int128_urshift
>
>   include/qemu/host-utils.h           |   3 +
>   include/qemu/int128.h               |  57 +++++++++
>   target/ppc/helper.h                 |   8 ++
>   target/ppc/insn32.decode            |  23 ++++
>   target/ppc/int_helper.c             | 106 ++++++++++++++++
>   target/ppc/translate/vmx-impl.c.inc | 155 ++++++++++++++++++++++++
>   tests/unit/test-int128.c            |  32 +++++
>   util/host-utils.c                   | 180 ++++++++++++++++++++++++++++
>   8 files changed, 564 insertions(+)
>
-- 
Lucas Mateus M. Araujo e Castro
Instituto de Pesquisas ELDORADO 
<https://www.eldorado.org.br/?utm_campaign=assinatura_de_e-mail&utm_medium=email&utm_source=RD+Station>
Departamento Computação Embarcada
Analista de Software Trainee
Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>