[PATCH] testsuite: Require fgraphite effective target for pr106737.c test [PR106737]

2022-08-27 Thread Jakub Jelinek via Gcc-patches
On Thu, Aug 25, 2022 at 10:44:32AM +0200, Richard Biener via Gcc-patches wrote: > * gcc.dg/autopar/pr106737.c: New testcase. The test uses -floop-parallelize-all which emits a sorry when graphite isn't configured in. Fixed thusly, tested on x86_64-linux (where it PASSed for me before and ke

Re: [PATCH] x86: Handle V16BF in ix86_avx256_split_vector_move_misalign

2022-08-27 Thread Uros Bizjak via Gcc-patches
On Fri, Aug 26, 2022 at 7:34 PM H.J. Lu wrote: > > Handle E_V16BFmode in ix86_avx256_split_vector_move_misalign and add > V16BF to V_256H iterator. > > gcc/ > > PR target/106748 > * config/i386/i386-expand.cc > (ix86_avx256_split_vector_move_misalign): Handle E_V16BFmode. >

[PATCH] RISC-V: Add RVV instructions classification

2022-08-27 Thread juzhe . zhong
From: zhongjuzhe gcc/ChangeLog: * config/riscv/riscv.md: Add new type for vector instructions. --- gcc/config/riscv/riscv.md | 100 +- 1 file changed, 99 insertions(+), 1 deletion(-) diff --git a/gcc/config/riscv/riscv.md b/gcc/config/riscv/riscv.md

[PATCH] RISC-V: Add RVV registers

2022-08-27 Thread juzhe . zhong
From: zhongjuzhe gcc/ChangeLog: * config/riscv/riscv.cc (riscv_v_ext_vector_mode_p): New function. (riscv_classify_address): Disallow PLUS/LO_SUM/CONST_INT address types for RVV. (riscv_address_insns): Add RVV modes condition. (riscv_binary_cost): Ditto.

[PATCH V3] Add warning options -W[no-]compare-distinct-pointer-types

2022-08-27 Thread Jose E. Marchesi via Gcc-patches
GCC emits pedwarns unconditionally when comparing pointers of different types, for example: int xdp_context (struct xdp_md *xdp) { void *data = (void *)(long)xdp->data; __u32 *metadata = (void *)(long)xdp->data_meta; __u32 ret; if (metadata + 1 > data)

[PATCH] rs6000: Allow conversions of MMA pointer types [PR106017]

2022-08-27 Thread Peter Bergner via Gcc-patches
GCC incorrectly disables conversions between MMA pointer types, which are allowed with clang. The original intent was to disable conversions between MMA types and other other types, but pointer conversions should have been allowed. The fix is to just remove the MMA pointer conversion handling cod

Re: [PATCH] rs6000: Allow conversions of MMA pointer types [PR106017]

2022-08-27 Thread Segher Boessenkool
Hi! On Sat, Aug 27, 2022 at 01:36:07PM -0500, Peter Bergner wrote: > GCC incorrectly disables conversions between MMA pointer types, which > are allowed with clang. The original intent was to disable conversions > between MMA types and other other types, but pointer conversions should > have been

[committed] d: Merge upstream dmd 817610b16d, phobos b578dfad9

2022-08-27 Thread ibuclaw--- via Gcc-patches
Hi, This patch merges the D front-end with upstream dmd 817610b16d, and standard library with phobos b578dfad9. D front-end changes: - Import latest bug fixes to mainline. Phobos changes: - Import latest bug fixes to mainline. - std.logger module has been moved out of experimental.

Re: [PATCH] rs6000: Allow conversions of MMA pointer types [PR106017]

2022-08-27 Thread Peter Bergner via Gcc-patches
On 8/27/22 4:37 PM, Segher Boessenkool wrote: > Such conversions are explicitly allowed in C, even (6.3.2.3/7). Yeah, I think I just got a little carried away disabling them originally. :-( >> The fix is to just remove the MMA pointer conversion >> handling code altogether. > > Okay for trunk a