[PATCH] PR tree-optimization/105668: Provide RTL expansion for VEC_COND_EXPR.

2022-05-22 Thread Roger Sayle
This resolves PR tree-optimization/105668, a P1 ice-on-valid regression triggered by my recent patch to add a vec_cmpeqv1tiv1ti define_expand to the i386 backend. The existence of this optab currently leads GCC to incorrectly assume the existence of a corresponding vcond_mask for V1TImode. I bel

Re: [PATCH v2 1/1] RISC-V: Fix canonical extension order (K and J)

2022-05-22 Thread Kito Cheng via Gcc-patches
Pushed, thanks! On Sun, May 22, 2022 at 5:30 PM Tsukasa OI via Gcc-patches wrote: > > This commit fixes canonical extension order to follow the RISC-V ISA > Manual draft-20210402-1271737 or later. > > gcc/ChangeLog: > > * common/config/riscv/riscv-common.cc (riscv_supported_std_ext): >

Re: [committed] wwwdocs: gcc-12: Fix HTML around RISC-V entries

2022-05-22 Thread Kito Cheng via Gcc-patches
Thank you, Gerald :) On Sun, May 22, 2022 at 6:29 AM Gerald Pfeifer wrote: > > I'm not sure when that sneaked in (and it predates that last entry), > but followed by is one too many in any case. :-) > > Pushed. > > Gerald > --- > htdocs/gcc-12/changes.html | 1 - > 1 file changed, 1 deletion(-

Re: [PATCH] rs6000: add support for sanitizers on FreeBSD

2022-05-22 Thread Kewen.Lin via Gcc-patches
Hi Piotr, on 2022/5/23 05:36, Piotr Kubaj wrote: > Ping. > > FreeBSD has already enabled sanitizers in its base system in > https://cgit.freebsd.org/src/commit/?id=f5024381ac16ba43d37a8bd32d54c27f6a6afa66 > The upstream (LLVM) patch was reviewed by a couple of people already. > > Our llvm-devel

[PATCH V2]rs6000: Store complicated constant into pool

2022-05-22 Thread Jiufu Guo via Gcc-patches
Hi, And after some discussions in the previous review: https://gcc.gnu.org/pipermail/gcc-patches/2022-March/591509.html This patch simply updates the rtx_cost hook to accurate cost on constant by using 'COSTS_N_INSNS' with 'num_insns_constant'. This could avoid CSE eliminate constant loading.

Re: [PATCH] rs6000: add support for sanitizers on FreeBSD

2022-05-22 Thread Piotr Kubaj
Ping. FreeBSD has already enabled sanitizers in its base system in https://cgit.freebsd.org/src/commit/?id=f5024381ac16ba43d37a8bd32d54c27f6a6afa66 The upstream (LLVM) patch was reviewed by a couple of people already. Our llvm-devel port also has sanitizers enabled by default since https://cgit

Re: [PATCH] Add divide by zero side effect.

2022-05-22 Thread Alexander Monakov via Gcc-patches
On Fri, 20 May 2022, Richard Biener wrote: > > > > I suggest 'deduce', 'deduction', 'deducing a range'. What the code is > > > > actually > > > > doing is deducing that 'b' in 'a / b' cannot be zero. Function in GCC > > > > might be > > > > called like 'deduce_ranges_from_stmt'. > > > > > > So h

Re: [PATCH] [x86_64]: Zhaoxin lujiazui enablement

2022-05-22 Thread Uros Bizjak via Gcc-patches
On Tue, May 17, 2022 at 11:34 AM Mayshao-oc wrote: > > > On Tue, May 17, 2022 at 5:15 AM mayshao wrote: > >> Hi Uros: > >> This patch fix Zhaoxin CPU vendor ID detection problem and add > >> zhaoxin "lujiazui" processor support. > >> Currently gcc can't recognize Zhaoxin CPU(vend

Re: [PATCH 1/1] RISC-V: Fix canonical extension order (K and J)

2022-05-22 Thread Tsukasa OI via Gcc-patches
On 2022/05/19 12:40, Nelson Chu wrote: > Seems like gcc and llvm have already committed this patch, so LGTM, committed. Sorry, the same change is applied to LLVM but not yet on GCC (because I forgot to add "Signed-off-by" line). I sent PATCH v2 to gcc-patches today so that would be okay. On PATC

[PATCH v2 1/1] RISC-V: Fix canonical extension order (K and J)

2022-05-22 Thread Tsukasa OI via Gcc-patches
This commit fixes canonical extension order to follow the RISC-V ISA Manual draft-20210402-1271737 or later. gcc/ChangeLog: * common/config/riscv/riscv-common.cc (riscv_supported_std_ext): Fix "K" extension prefix to be placed before "J". * config/riscv/arch-canonicalize:

[PATCH v2 0/1] RISC-V: Fix canonical extension order (K and J)

2022-05-22 Thread Tsukasa OI via Gcc-patches
PATCH v1: Changes between v1 and v2: - Added Signed-off-by line (I didn't notice that this is required) - Applied the same change to Python script: gcc/config/riscv/arch-canonicalize Note that this kind of change is alread

[PATCH] Minor improvement to genpreds.cc

2022-05-22 Thread Roger Sayle
This simple patch implements Richard Biener's suggestion in comment #6 of PR tree-optimization/52171 (from February 2013) that the insn-preds code generated by genpreds can avoid using strncmp when matching constant strings of length one. The effect of this patch is best explained by the diff of