Re: [PATCH 2/5] [RISC-V] Generate Zicond instruction for basic semantics

2023-08-02 Thread Jeff Law via Gcc-patches
On 8/2/23 04:05, Richard Sandiford wrote: Jeff Law via Gcc-patches writes: On 8/1/23 05:18, Richard Sandiford wrote: Where were you seeing the requirement for pointer equality? genrecog.cc at least uses rtx_equal_p, and I think it has to. E.g. some patterns use (match_dup ...) to match

Re: [PATCH 2/5] [RISC-V] Generate Zicond instruction for basic semantics

2023-08-02 Thread Richard Sandiford via Gcc-patches
Jeff Law via Gcc-patches writes: > On 8/1/23 05:18, Richard Sandiford wrote: >> >> Where were you seeing the requirement for pointer equality? genrecog.cc >> at least uses rtx_equal_p, and I think it has to. E.g. some patterns >> use (match_dup ...) to match output and input mems, and mem

Re: [PATCH 2/5] [RISC-V] Generate Zicond instruction for basic semantics

2023-08-02 Thread Jeff Law via Gcc-patches
On 8/1/23 05:18, Richard Sandiford wrote: Where were you seeing the requirement for pointer equality? genrecog.cc at least uses rtx_equal_p, and I think it has to. E.g. some patterns use (match_dup ...) to match output and input mems, and mem rtxes shouldn't be shared. It's a general

Re: [PATCH 2/5] [RISC-V] Generate Zicond instruction for basic semantics

2023-08-01 Thread Richard Sandiford via Gcc-patches
Jeff Law via Gcc-patches writes: > On 7/19/23 04:11, Xiao Zeng wrote: >> This patch completes the recognition of the basic semantics >> defined in the spec, namely: >> >> Conditional zero, if condition is equal to zero >>rd = (rs2 == 0) ? 0 : rs1 >> Conditional zero, if condition is non zero

Re: [PATCH 2/5] [RISC-V] Generate Zicond instruction for basic semantics

2023-07-26 Thread Jeff Law via Gcc-patches
[PATCH 2/5] [RISC-V] Generate Zicond instruction for basic semantics This patch completes the recognition of the basic semantics defined in the spec, namely: Conditional zero, if condition is equal to zero rd = (rs2 == 0) ? 0 : rs1 Conditional zero, if condition is non

Re: [PATCH 2/5] [RISC-V] Generate Zicond instruction for basic semantics

2023-07-26 Thread Jeff Law via Gcc-patches
On 7/19/23 04:11, Xiao Zeng wrote: This patch completes the recognition of the basic semantics defined in the spec, namely: Conditional zero, if condition is equal to zero rd = (rs2 == 0) ? 0 : rs1 Conditional zero, if condition is non zero rd = (rs2 != 0) ? 0 : rs1 gcc/ChangeLog:

Re: [PATCH 2/5] [RISC-V] Generate Zicond instruction for basic semantics

2023-07-25 Thread Jeff Law via Gcc-patches
On 7/19/23 04:11, Xiao Zeng wrote: This patch completes the recognition of the basic semantics defined in the spec, namely: Conditional zero, if condition is equal to zero rd = (rs2 == 0) ? 0 : rs1 Conditional zero, if condition is non zero rd = (rs2 != 0) ? 0 : rs1 gcc/ChangeLog:

[PATCH 2/5] [RISC-V] Generate Zicond instruction for basic semantics

2023-07-19 Thread Xiao Zeng
This patch completes the recognition of the basic semantics defined in the spec, namely: Conditional zero, if condition is equal to zero rd = (rs2 == 0) ? 0 : rs1 Conditional zero, if condition is non zero rd = (rs2 != 0) ? 0 : rs1 gcc/ChangeLog: * config/riscv/riscv.md: Include