PATCH v1:
<https://gcc.gnu.org/pipermail/gcc-patches/2023-August/628786.html>
PATCH v2:
<https://gcc.gnu.org/pipermail/gcc-patches/2023-August/628872.html>
PATCH v3:
<https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629332.html>

Changes: v1 -> v2
*   Removed bogus opt2 pattern as pointed out in:
    <https://gcc.gnu.org/pipermail/gcc-patches/2023-August/628867.html>
    note that this is not in the ChangeLog expecting the patch above
    applies first.

Changes: v2 -> v3
*   Instead of removing opt2 pattern, fix opt2 pattern:
    <https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629137.html>

Changes: v3 -> v4
*   Leave only specific condition on {eq,ne}z_ventana code_attr.
    (eqz_ventana, nez_ventana): "maskcn" -> "n", "maskc" -> ""
    (*czero.<eqz>.<GPR><X>) "vt.<eqz_ventana>" -> "vt.maskc<eqz_ventana>"
    (*czero.<nez>.<GPR><X>) "vt.<nez_ventana>" -> "vt.maskc<nez_ventana>"
*   Testsuite:
    Reuse "zicond-*.c" (#include from "xventanacondops-*.c")
*   Minor Comment: ";; Zicond" -> ";; Zicond / XVentanaCondOps"
*   Rebase against commit e87212ead5e9 ("RISC-V: zicond: Fix opt2 pattern")


On 2023/09/06 12:07, Jeff Law wrote:
> You actually don't even have to break out the common parts.  The dg-
> directives in an included file aren't parsed by the dg framework.

Wow, that was right.  It can be sometimes confusing but very useful
in this case.  Thanks for the info!


Sincerely,
Tsukasa




Tsukasa OI (1):
  RISC-V: Add support for 'XVentanaCondOps' reusing 'Zicond' support

 gcc/common/config/riscv/riscv-common.cc       |  2 +
 gcc/config/riscv/riscv-opts.h                 |  6 +++
 gcc/config/riscv/riscv.cc                     |  4 +-
 gcc/config/riscv/riscv.md                     |  2 +-
 gcc/config/riscv/riscv.opt                    |  3 ++
 gcc/config/riscv/zicond.md                    | 53 +++++++++++++++----
 .../xventanacondops-primitiveSemantics-rv32.c |  8 +++
 .../xventanacondops-primitiveSemantics.c      | 10 ++++
 .../gcc.target/riscv/xventanacondops-xor-01.c |  8 +++
 9 files changed, 82 insertions(+), 14 deletions(-)
 create mode 100644 
gcc/testsuite/gcc.target/riscv/xventanacondops-primitiveSemantics-rv32.c
 create mode 100644 
gcc/testsuite/gcc.target/riscv/xventanacondops-primitiveSemantics.c
 create mode 100644 gcc/testsuite/gcc.target/riscv/xventanacondops-xor-01.c


base-commit: c1597e7fb9f9ecb9d7c33b5afa48031f284375de
-- 
2.42.0

Reply via email to