mbox series

[v4,00/11] Add several Power ISA 3.1 32/64-bit vector instructions

Message ID 20200701234344.91843-1-ljp@linux.ibm.com (mailing list archive)
Headers show
Series Add several Power ISA 3.1 32/64-bit vector instructions | expand

Message

Lijun Pan July 1, 2020, 11:43 p.m. UTC
This patch series add several newly introduced 32/64-bit vector
instructions in Power ISA 3.1. Power ISA 3.1 flag is introduced in
this version. In v4 version, coding style issues are fixed, community
reviews/suggestions are taken into consideration.

Lijun Pan (11):
  target/ppc: Introduce Power ISA 3.1 flag
  target/ppc: Enable Power ISA 3.1
  target/ppc: add byte-reverse br[dwh] instructions
  target/ppc: convert vmuluwm to tcg_gen_gvec_mul
  target/ppc: add vmulld instruction
  Update PowerPC AT_HWCAP2 definition
  target/ppc: add vmulld to INDEX_op_mul_vec case
  target/ppc: add vmulh{su}w instructions
  fix the prototype of muls64/mulu64
  target/ppc: add vmulh{su}d instructions
  target/ppc: add vdiv{su}{wd} vmod{su}{wd} instructions

 include/elf.h                       |  1 +
 include/qemu/host-utils.h           |  4 +-
 target/ppc/cpu.h                    |  4 +-
 target/ppc/helper.h                 | 13 ++++-
 target/ppc/int_helper.c             | 75 ++++++++++++++++++++++++-----
 target/ppc/translate.c              | 43 +++++++++++++++++
 target/ppc/translate/vmx-impl.inc.c | 26 +++++++++-
 target/ppc/translate/vmx-ops.inc.c  | 27 +++++++++--
 target/ppc/translate_init.inc.c     |  2 +-
 tcg/ppc/tcg-target.h                |  2 +
 tcg/ppc/tcg-target.inc.c            | 12 ++++-
 11 files changed, 184 insertions(+), 25 deletions(-)

Comments

David Gibson July 5, 2020, 9:10 a.m. UTC | #1
On Wed, Jul 01, 2020 at 06:43:35PM -0500, Lijun Pan wrote:
> This patch series add several newly introduced 32/64-bit vector
> instructions in Power ISA 3.1. Power ISA 3.1 flag is introduced in
> this version. In v4 version, coding style issues are fixed, community
> reviews/suggestions are taken into consideration.

So, is the ISA 3.1 document available somewhere?

> 
> Lijun Pan (11):
>   target/ppc: Introduce Power ISA 3.1 flag
>   target/ppc: Enable Power ISA 3.1
>   target/ppc: add byte-reverse br[dwh] instructions
>   target/ppc: convert vmuluwm to tcg_gen_gvec_mul
>   target/ppc: add vmulld instruction
>   Update PowerPC AT_HWCAP2 definition
>   target/ppc: add vmulld to INDEX_op_mul_vec case
>   target/ppc: add vmulh{su}w instructions
>   fix the prototype of muls64/mulu64
>   target/ppc: add vmulh{su}d instructions
>   target/ppc: add vdiv{su}{wd} vmod{su}{wd} instructions
> 
>  include/elf.h                       |  1 +
>  include/qemu/host-utils.h           |  4 +-
>  target/ppc/cpu.h                    |  4 +-
>  target/ppc/helper.h                 | 13 ++++-
>  target/ppc/int_helper.c             | 75 ++++++++++++++++++++++++-----
>  target/ppc/translate.c              | 43 +++++++++++++++++
>  target/ppc/translate/vmx-impl.inc.c | 26 +++++++++-
>  target/ppc/translate/vmx-ops.inc.c  | 27 +++++++++--
>  target/ppc/translate_init.inc.c     |  2 +-
>  tcg/ppc/tcg-target.h                |  2 +
>  tcg/ppc/tcg-target.inc.c            | 12 ++++-
>  11 files changed, 184 insertions(+), 25 deletions(-)
>
Greg Kurz July 6, 2020, 7:34 a.m. UTC | #2
On Sun, 5 Jul 2020 19:10:46 +1000
David Gibson <david@gibson.dropbear.id.au> wrote:

> On Wed, Jul 01, 2020 at 06:43:35PM -0500, Lijun Pan wrote:
> > This patch series add several newly introduced 32/64-bit vector
> > instructions in Power ISA 3.1. Power ISA 3.1 flag is introduced in
> > this version. In v4 version, coding style issues are fixed, community
> > reviews/suggestions are taken into consideration.
> 
> So, is the ISA 3.1 document available somewhere?
> 

In https://www-355.ibm.com/systems/power/openpower/ there's a link to
the PDF:

https://ibm.ent.box.com/s/hhjfw0x0lrbtyzmiaffnbxh2fuo0fog0

> > 
> > Lijun Pan (11):
> >   target/ppc: Introduce Power ISA 3.1 flag
> >   target/ppc: Enable Power ISA 3.1
> >   target/ppc: add byte-reverse br[dwh] instructions
> >   target/ppc: convert vmuluwm to tcg_gen_gvec_mul
> >   target/ppc: add vmulld instruction
> >   Update PowerPC AT_HWCAP2 definition
> >   target/ppc: add vmulld to INDEX_op_mul_vec case
> >   target/ppc: add vmulh{su}w instructions
> >   fix the prototype of muls64/mulu64
> >   target/ppc: add vmulh{su}d instructions
> >   target/ppc: add vdiv{su}{wd} vmod{su}{wd} instructions
> > 
> >  include/elf.h                       |  1 +
> >  include/qemu/host-utils.h           |  4 +-
> >  target/ppc/cpu.h                    |  4 +-
> >  target/ppc/helper.h                 | 13 ++++-
> >  target/ppc/int_helper.c             | 75 ++++++++++++++++++++++++-----
> >  target/ppc/translate.c              | 43 +++++++++++++++++
> >  target/ppc/translate/vmx-impl.inc.c | 26 +++++++++-
> >  target/ppc/translate/vmx-ops.inc.c  | 27 +++++++++--
> >  target/ppc/translate_init.inc.c     |  2 +-
> >  tcg/ppc/tcg-target.h                |  2 +
> >  tcg/ppc/tcg-target.inc.c            | 12 ++++-
> >  11 files changed, 184 insertions(+), 25 deletions(-)
> > 
>