Re: [MIPS] GCC: Fix Loongson3 LLSC Errata

2019-09-30 Thread Jiaxun Yang
bit domin of 3A4000, should we also use that naming in toolchain? Thanks. -- Jiaxun Yang This patch also add a configure options --with-mips-fix-loongson3-llsc=[yes|no] to enable fix-loongson3-llsc by config. >From 16f0fd9e32d2098637dc0eb3e576444c48c43f22 Mon Sep 17 00:00:00 2001 From: C

[PATCH 2/2] b4-config: Add useful options

2025-01-02 Thread Jiaxun Yang
Add patchwork configuration, use check_GNU_style.py and git_email.py to perform prepare and pre-apply checks, disable auto-to-cc preflight checks as we don't have auto-to-cc script. It helps with streamlining workflow with b4 so people can use `b4 prep --check` to check patches before sending or a

[PATCH 0/2] Improve b4 workflow

2025-01-02 Thread Jiaxun Yang
Hi all, This series improved b4 working flow by wire up code style and changelog checking scripts in b4's automation. Please help with review and apply. Thanks! Signed-off-by: Jiaxun Yang --- Jiaxun Yang (2): contrib/gcc-changelog/git_email.py: Rework the script b4-config

[PATCH 1/2] contrib/gcc-changelog/git_email.py: Rework the script

2025-01-02 Thread Jiaxun Yang
Rework the script to align parameters and output with git_check_commit.py, also better cooperation with b4. All changes to usage are backward compatible. contrib/ChangeLog: * gcc-changelog/git_email.py: (main) Convert to use argparser; accept file from stdin; Add --verbose

[PATCH] sh: libgcc: Implement fenv rouding and exceptions for soft-fp [PR118257]

2025-01-01 Thread Jiaxun Yang
ewise. (FP_TRAPPING_EXCEPTIONS): Likewise. (FP_HANDLE_EXCEPTIONS): Implement with _FPU_SETCW. Signed-off-by: Jiaxun Yang --- libgcc/config/sh/sfp-machine.h | 46 ++ 1 file changed, 46 insertions(+) diff --git a/libgcc/config/sh/sfp-machine.h b/libgcc/config/s

[PATCH v2] sh: libgcc: Implement fenv rouding and exceptions for soft-fp [PR118257]

2025-01-01 Thread Jiaxun Yang
TIONS): Likewise. (FP_HANDLE_EXCEPTIONS): Implement with _FPU_SETCW. Signed-off-by: Jiaxun Yang --- Changes in v2: - Use builtins tp implement _FPU_GETCW/_FPU_SETCW. - Link to v1: https://inbox.sourceware.org/20250101-sh4-fenv-exception-v1-1-9bafef83a...@flygoat.com --- libgcc/config/s

Re: [PATCH] sh: libgcc: Implement fenv rouding and exceptions for soft-fp [PR118257]

2025-01-01 Thread Jiaxun Yang
在2025年1月1日一月 下午2:57,Oleg Endo写道: > On Wed, 2025-01-01 at 14:43 +0000, Jiaxun Yang wrote: >> >> +#ifdef __SH_FPU_ANY__ >> +#define _FPU_GETCW(fpscr) __asm__ volatile ("sts fpscr,%0" : "=r" (fpscr)) >> +#define _FPU_SETCW(fpscr) __asm__ volatile (

[PATCH v2] sh: Correct NaN signalling bit and propagation rules [PR111814]

2025-01-01 Thread Jiaxun Yang
. (_FP_NANFRAC_Q): Likewise. (_FP_KEEPNANFRACP): Enable for target. (_FP_QNANNEGATEDP): Enable for target. (_FP_CHOOSENAN): Port from MIPS. gcc/testsuite/ChangeLog: * gcc.target/sh/pr111814.c: New test. Signed-off-by: Jiaxun Yang --- Changes in v2: - Fix compile

[PATCH] sh: Correct NaN signalling bit and propagation rules [PR111814]

2024-12-31 Thread Jiaxun Yang
. (_FP_NANFRAC_Q): Likewise. (_FP_KEEPNANFRACP): Enable for target. (_FP_QNANNEGATEDP): Enable for target. (_FP_CHOOSENAN): Port from MIPS. gcc/testsuite/ChangeLog: * gcc.target/sh/pr111814.c: New test. Signed-off-by: Jiaxun Yang --- gcc/config/sh/sh-modes.def

Re: [PATCH] sh: Correct NaN signalling bit and propagation rules [PR111814]

2024-12-31 Thread Jiaxun Yang
在2024年12月31日十二月 下午4:56,Jiaxun Yang写道: > As per architecture, SuperH has a reversed NaN signalling bit > vs IEEE754-2008, it also has a NaN propgation rule similar to > MIPS style. Oops, please don't apply this version, it seems like auto style fixes messed up building, sorry

Re: [PATCH] MIPS: add speculation_barrier support

2023-04-28 Thread Jiaxun Yang via Gcc-patches
> 2023年4月28日 13:33,YunQiang Su 写道: > > speculation_barrier for MIPS needs sync+jr.hb (r2+), > so we implement __speculation_barrier in libgcc, like arm32 does. > > gcc/ChangeLog: > * config/mips/mips-protos.h (mips_emit_speculation_barrier): New >prototype. > * config/mips/mips.cc (sp

Re: [PATCH v2] MIPS: add speculation_barrier support

2023-05-03 Thread Jiaxun Yang via Gcc-patches
> 2023年5月3日 22:04,Maciej W. Rozycki 写道: > > On Wed, 3 May 2023, Richard Sandiford wrote: > >>> speculation_barrier for MIPS needs sync+jr.hb (r2+), >>> so we implement __speculation_barrier in libgcc, like arm32 does. >> >> Looks reasonable, but do you have a source for the fallback >> pre-r

Re: [PATCH v2] MIPS: add speculation_barrier support

2023-05-07 Thread Jiaxun Yang via Gcc-patches
> 2023年5月7日 18:34,Maciej W. Rozycki 写道: > > On Wed, 3 May 2023, Jiaxun Yang wrote: > >> Since it’s possible to run R2- binary on R2+ processor, we’d better find a >> semantic that do eliminate speculation on all processors. While SSNOPs >> on R2+ processors is p