Re: [PATCH 30/61] MSA: Make MSA and microMIPS R5 unsupported

2025-04-23 Thread Aleksandar Rakic
dds a support for microMIPS R6 in GCC, where the local variable 'is_micromips' was defined. Now I must update this patch appropriately. Please find a new version of this patch in the attachment. Kind regards, Aleksandar From 16b3207aed5e4846fde4f3ffa1253c65ef6ba056 Mon Sep 17 00:00:00 20

Re: [PATCH 07/61] Testsuite: Fix tests properly for compact-branches

2025-04-23 Thread Aleksandar Rakic
HTEC Public Hi, > This likely needs to be updated for the trunk. > Before: > === gcc Summary === > # of expected passes95 > # of unexpected failures25 > After: > === gcc Summary === > # of expected passes70 > # of unexpected

Re: [PATCH 04/61] Enable LSAN and TSAN for mips with the 64-bit abi

2025-04-22 Thread Aleksandar Rakic
HTEC Public Hi, > This is probably OK, but it's unclear to me if it's dependent upon any > of the earlier changes. If it's independent of other changes, then it > could go in now with a suitable ChangeLog entry. > Jeff I would like to inform you that the version 2 of this patch is available at

Re: [PATCH 01/61] Multilib changes

2025-04-22 Thread Aleksandar Rakic
HTEC Public Hi, > So I'm not at all concerned about the mips specific bits of this patch. > After all, they only affect mips ports and the changes seem sensible. > They would need a ChangeLog entry to go forward through. > What is concerning is the config.ml change which has no comments about >

[PATCH v2 0/4] Libsanitizer improvements

2025-04-05 Thread Aleksandar Rakic
From: Aleksandar Rakic Chao-ying Fu (2): Fix libsanitizer linkage options for cross toolchains Enable LSAN and TSAN for mips with the 64-bit abi Faraz Shahbazker (1): Add shadow-map for n32 ABI Jean Lee (1): Add uclibc support gcc/gcc.cc| 20

[PATCH v2 3/7] MIPSR6: Fix ICE occurred in R6 target

2025-04-05 Thread Aleksandar Rakic
/MIPS/gcc Signed-off-by: Jaydeep Patil Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.md | 26 ++ 1 file changed, 26 insertions(+) diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 21eb0ac683a..8ebd2e04b91

Re: [PATCH v2 0/4] Libsanitizer improvements

2025-04-05 Thread Aleksandar Rakic
HTEC Public > It is mentioned in libsantizer/README.gcc : > ``` > Both tools consist of a compiler module and a run-time library. > The sources of the run-time library for these projects are hosted at > https://github.com/llvm/llvm-project in the following directories: > ``` > > Thanks, > Andrew

Re: [PATCH v2 04/18] Add microMIPS R6 support

2025-04-03 Thread Aleksandar Rakic
HTEC Public Hi, > Umm, this change can't go forward I'm afraid without microMIPSr6 > support landing in binutils first. Otherwise we have no consumer > for compiled code available. We have sent a patch series to binutils: https://sourceware.org/pipermail/binutils/2025-April/140356.html It inclu

Re: [PATCH v2 0/4] Libsanitizer improvements

2025-04-01 Thread Aleksandar Rakic
HTEC Proprietary Hi, Could you please provide an email address for upstream libsanitizer? We are not sure where to send these patches. Kind regards, Aleksandar Rakic From: Richard Biener Sent: Tuesday, April 1, 2025 2:50 PM To: Aleksandar Rakic Cc: gcc

[PATCH v2 03/10] Testsuite: Modify the gcc.dg/memcpy-4.c test

2025-03-17 Thread Aleksandar Rakic
c8b051cdbb1d5b166293513b0360d3d67cf31eb9 from https://github.com/MIPS/gcc Signed-off-by: Andrew Bennett Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.dg/memcpy-4.c | 7 +-- gcc/testsuite/gcc.target/mips/memcpy-2.c | 12 2 files changed, 13 insertions(+), 6

[PATCH v2 11/12] fmadd.w should be restricted to mipsr6

2025-03-17 Thread Aleksandar Rakic
fmadd/fmsub on !mipsisar6 targets. * lib/target-supports.exp: Define mipsisar6 target. Cherry-picked 7a48948f245a5e46f55d59c6ac0982a815665ccf from https://github.com/MIPS/gcc Signed-off-by: Dragan Mladjenovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic ---

[PATCH v2 04/10] Add offset shrinking pass (-mshrink-offsets)

2025-03-17 Thread Aleksandar Rakic
: Robert Suchanek Signed-off-by: Steve Ellcey Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 379 +++ gcc/config/mips/mips.opt | 4 + gcc/doc/invoke.texi | 11 ++ 3 files

[PATCH v2 1/1] Ensure _UNDER_TEST executables are target based

2025-03-17 Thread Aleksandar Rakic
://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- contrib/test_installed | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/contrib/test_installed b/contrib/test_installed index fe9533e44b7

[PATCH v2 06/12] Frame barrier fix

2025-03-17 Thread Aleksandar Rakic
-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index 7ff41862427..f01057feea1 100644 --- a/gcc/config/mips

[PATCH v2 3/4] Enable LSAN and TSAN for mips with the 64-bit abi

2025-03-17 Thread Aleksandar Rakic
From: Chao-ying Fu libsanitizer/ * configure.tgt: Enable LSAN and TSAN for mips with the 64-bit abi. Cherry-picked b9fd138826394dd188936c8031dec676e2d16b47 from https://github.com/MIPS/gcc Signed-off-by: Chao-ying Fu Signed-off-by: Aleksandar Rakic --- libsanitizer

[PATCH v2 18/18] Check anti-dependence between 0 and 3 for loads

2025-03-17 Thread Aleksandar Rakic
/gcc Signed-off-by: Chao-ying Fu Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.md | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index a69a879214e..db61b9d98fe 100644 --- a/gcc/config/mips/mips.md +++ b/gcc

[PATCH v2 00/12] Fix general Mips target bugs

2025-03-17 Thread Aleksandar Rakic
From: Aleksandar Rakic Aleksandar Rakic (1): Fix MSA SUBREG moves on big-endian targets Andrew Bennett (2): Testsuite: Fix tests properly for compact-branches Fix unsafe comparison against stack_pointer_rtx Chao-ying Fu (1): Fix pr54240 Matthew Fortune (6): Improve store_by_pieces_p

[PATCH v2 01/10] Add -mgrow-frame-downwards

2025-03-17 Thread Aleksandar Rakic
mips16 when -mgrow-frame-downwards is set. * config/mips/mips.opt: Add -mgrow-frame-downwards option. Cherry-picked 7c1bf276c0ebb45c87fe7bc30f057866d6153ec4 from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic

[PATCH v2 02/18] Hazard barrier return support

2025-03-17 Thread Aleksandar Rakic
Signed-off-by: Chao-ying Fu Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 60 +-- gcc/testsuite/gcc.target/mips/clear-cache-1.c | 2 +- .../mips/hazard-barrier-return-attribute.c| 2 +- 3 files changed, 58 insertions(+), 6 deletions

[PATCH v2 05/18] Add support for -mdead-loads

2025-03-17 Thread Aleksandar Rakic
Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/loongson-mmi.md | 2 +- gcc/config/mips/mips-msa.md | 2 +- gcc/config/mips/mips-protos.h | 2 +- gcc/config/mips/mips.cc | 57 ++--- gcc/config/mips/mips.md | 54

[PATCH v2 14/18] Test solution on dspmac builtins

2025-03-17 Thread Aleksandar Rakic
testcase. Cherry-picked 110ec7a3e56737bb8ed2ae653298aa55ad014377 and 712169a3630d45284ddd6ea6d0dedcb2b60e0ba4 from https://github.com/MIPS/gcc Signed-off-by: Mihailo Stojanovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 24

[PATCH v2 05/10] P5600: Option -msched-weight added

2025-03-17 Thread Aleksandar Rakic
0cf2542b41d8102800af180f0b6da1fe55a9d76b, and f732af3ad1a393d2f2e708f0d7c469a093049d01 from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Prachi Godbole Signed-off-by: Jaydeep Patil Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 239

[PATCH v2 01/18] Multilib changes

2025-03-17 Thread Aleksandar Rakic
, 24e261b2c9a9bea1c205cfab761c218ad50f938e, and 796ddebed418e953ba7cd5de1da42311fb1fe096 from https://github.com/MIPS/gcc Signed-off-by: Robert Suchanek Signed-off-by: Matthew Fortune Signed-off-by: Chao-ying Fu Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- config-ml.in | 25

[PATCH v2 10/12] Fix register spill issue for soft-float glibc 2.29

2025-03-17 Thread Aleksandar Rakic
-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.target/mips/tls-1.c | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 gcc/testsuite/gcc.target/mips/tls-1.c diff --git a/gcc/testsuite/gcc.target/mips/tls-1.c b/gcc/testsuite/gcc.target/mips/tls-1.c new

[PATCH v2 0/1] Improve the contrib directory

2025-03-17 Thread Aleksandar Rakic
From: Aleksandar Rakic Matthew Fortune (1): Ensure _UNDER_TEST executables are target based contrib/test_installed | 12 1 file changed, 8 insertions(+), 4 deletions(-) -- 2.34.1

[PATCH v2 05/12] Testsuite: Disable the time-profiler-2.c test

2025-03-17 Thread Aleksandar Rakic
Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.dg/tree-prof/time-profiler-2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/tree-prof/time-profiler-2.c b/gcc/testsuite/gcc.dg/tree-prof/time-profiler-2.c index eed0b1dd08d..bcf9adf1b09 100644 --- a/gcc

[PATCH v2 0/1] Improve the contrib directory

2025-03-17 Thread Aleksandar Rakic
This patch series improves the script in the contrib directory of the GCC source tree. This patch is cherry-picked from the mips_rel/9_3_0/master branch from the MIPS' repository: https://github.com/MIPS/gcc . Further details on the individual changes are included in the respective patch.

[PATCH v2 0/4] Libsanitizer improvements

2025-03-17 Thread Aleksandar Rakic
This patch series improves the libsanitizer for the mips target in GCC. These patches are cherry-picked from the mips_rel/11_2_0/master and mips_rel/9_3_0/master branches from the MIPS' repository: https://github.com/MIPS/gcc . Further details on the individual changes are included in the respecti

[PATCH v2 4/4] Add uclibc support

2025-03-17 Thread Aleksandar Rakic
cd0f24665e5d5af, 5cd320103ba1248c6925b9843f1139e60d283bed and af4425414cef0155d6f00ad118417f4908eae756 from https://github.com/MIPS/gcc Signed-off-by: Jean Lee Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- libsanitizer/asan/asan_descriptions.cpp | 5 ++ libsanitizer/asan

[PATCH v2 10/10] nanoMIPS: unnecessary AND following an EXT

2025-03-17 Thread Aleksandar Rakic
ion-zext.c: New. Cherry-picked a76808b917661f102d4b5f6256f76a1a1e580676 from https://github.com/MIPS/gcc Signed-off-by: Dragan Mladjenovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/fwprop.cc | 38 ++ gcc/testsuite/gcc.t

[PATCH v2 1/4] Add shadow-map for n32 ABI

2025-03-17 Thread Aleksandar Rakic
-off-by: Aleksandar Rakic --- libsanitizer/asan/asan_mapping.h | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/libsanitizer/asan/asan_mapping.h b/libsanitizer/asan/asan_mapping.h index 54890ca1789..7a6d94623b4 100644 --- a/libsanitizer/asan/asan_mapping.h +++ b

[PATCH v2 08/10] Testsuite: Skip tests making calls to variables

2025-03-17 Thread Aleksandar Rakic
(check_effective_target_mips_compressed): New function. Cherry-picked 97f2d5c6403c0cb8b65e059349ec18ffc9505bfd from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.c-torture/compile/20020129-1.c | 5 + gcc

[PATCH v2 07/10] Testsuite: Adjust tests to cope with -mips16

2025-03-17 Thread Aleksandar Rakic
. Remove a NOMIPS16 attribute from builtins. * gcc.target/mips/msa.c: Likewise. Cherry-picked 38288a0fd125d70a7876763d7165f858d902 from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- .../gcc.target

[PATCH v2 02/10] Only split shifts if using -mno-debugd

2025-03-17 Thread Aleksandar Rakic
-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.md | 1 + gcc/config/mips/mips.opt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index f147667d63a..9813745dd95 100644 --- a/gcc/config

[PATCH v2 08/12] Fix MSA SUBREG moves on big-endian targets

2025-03-17 Thread Aleksandar Rakic
From: Aleksandar Rakic GCC assumes that taking a vector mode B SUBREG of vector mode A register allows it to interpret its memory layout as if in A vector mode. We currently allow this mode change to be no-op on MSA registers. This works on little-endian because MSA register layout matches that

[PATCH v2 12/12] Fix pr54240

2025-03-17 Thread Aleksandar Rakic
From: Chao-ying Fu gcc/testsuite/ * gcc.target/mips/pr54240.c: Scan phiopt2. Cherry-picked 02dd052d4822ca187af075f1fb5301c954844144 from https://github.com/MIPS/gcc Signed-off-by: Chao-ying Fu Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.target/mips/pr54240.c | 2 +- 1 file

[PATCH v2 06/10] Testsuite: Fix insn-*.c tests from trunk

2025-03-17 Thread Aleksandar Rakic
but not the command line option. Cherry-picked e7aaf244857638adeb9d1eb5207dbe2842cbe81d from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.target/mips/insn-casesi.c| 6 +++--- gcc/testsuite

[PATCH v2 04/12] Testsuite: Use HAS_LDC instead of a specific ISA

2025-03-17 Thread Aleksandar Rakic
option instead of isa>=2. Cherry-picked e9df15b1a308aa8a10473c820f35d628fa8f2efb from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.target/mips/call-clobbered-1.c | 2 +- 1 file changed

[PATCH v2 2/4] Fix libsanitizer linkage options for cross toolchains

2025-03-17 Thread Aleksandar Rakic
96b7557473a09bb181be86c741c6e79a4a3c41b1 from https://github.com/MIPS/gcc Signed-off-by: Faraz Shahbazker Signed-off-by: Chao-ying Fu Signed-off-by: Aleksandar Rakic --- gcc/gcc.cc| 20 libsanitizer/Makefile.in | 1 + libsanitizer/asan/Makefile.in

[PATCH v2 07/12] Lightweight fix for shrink-wrapping inhibition

2025-03-17 Thread Aleksandar Rakic
Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 12 1 file changed, 12 insertions(+) diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index f01057feea1..82c9e49c6bf 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config

[PATCH v2 03/12] Improve store_by_pieces_p

2025-03-17 Thread Aleksandar Rakic
-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index ae0477b2dce..7ff41862427 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config/mips/mips.cc @@ -8407,7 +8407,7

[PATCH v2 10/18] Add -march=interaptiv-mr2 with MIPS16E2

2025-03-17 Thread Aleksandar Rakic
ps://github.com/MIPS/gcc Signed-off-by: Robert Suchanek Signed-off-by: Matthew Fortune Signed-off-by: Mihailo Stojanovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/24k.md| 68 ++-- gcc/config/mips/mips-cpus.def

[PATCH v2 09/12] Add -mmxu and -mno-mxu driver pass through

2025-03-17 Thread Aleksandar Rakic
: Aleksandar Rakic --- gcc/config/mips/mips.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index fb696ed9957..39584f43394 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -1465,6 +1465,7 @@ struct mips_cpu_info { %{mloongson-ext2

[PATCH v2 09/10] Remove redundant moves

2025-03-17 Thread Aleksandar Rakic
Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.md | 24 1 file changed, 24 insertions(+) diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 9813745dd95..5c2bfa4fa62 100644 --- a/gcc/config/mips/mips.md +++ b

[PATCH v2 00/10] Improvements for the targets other than mips64r6

2025-03-17 Thread Aleksandar Rakic
From: Aleksandar Rakic Andrew Bennett (2): Only split shifts if using -mno-debugd Testsuite: Modify the gcc.dg/memcpy-4.c test Jaydeep Patil (1): P5600: Option -msched-weight added Matthew Fortune (3): Testsuite: Fix insn-*.c tests from trunk Testsuite: Adjust tests to cope with

[PATCH v2 02/12] Fix unsafe comparison against stack_pointer_rtx

2025-03-17 Thread Aleksandar Rakic
Signed-off-by: Andrew Bennett Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 16 +--- gcc/config/mips/mips.md | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index

[PATCH v2 07/18] Add -munique-sections feature

2025-03-17 Thread Aleksandar Rakic
: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 54 +-- gcc/config/mips/mips.opt | 4 ++ gcc/doc/invoke.texi | 10 gcc/testsuite/gcc.target/mips/mips.exp| 18

[PATCH v2 13/18] Make rtl if-conversion more common

2025-03-17 Thread Aleksandar Rakic
by: Dragan Mladjenovic Signed-off-by: Mihailo Stojanovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 65 +++ gcc/testsuite/gcc.target/mips/branch-cost-1.c | 2 +- 2 files changed, 66 insertions(+),

[PATCH v2 0/12] Fix general Mips target bugs

2025-03-17 Thread Aleksandar Rakic
This patch series includes the fixes to the general bugs for the mips target in GCC. These patches are cherry-picked from the mips_rel/9_3_0/master branch from the MIPS' repository: https://github.com/MIPS/gcc . Further details on the individual changes are included in the respective patches.

[PATCH v2 12/18] Load/store bonding improvements

2025-03-17 Thread Aleksandar Rakic
ac220a and 4a2432906766a48b7f3f9aaad8a1358604ce2f88 from https://github.com/MIPS/gcc Signed-off-by: Robert Suchanek Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips-protos.h| 2 +- gcc/config/mips/mips.cc | 400 ++- gcc/c

[PATCH v2 01/12] Testsuite: Fix tests properly for compact-branches

2025-03-17 Thread Aleksandar Rakic
/near-far-4.c: Likewise. Cherry-picked 4420f953c31daf1991011d306a56ab74c39b44ee and 83c13cb19cb1e87a25326024943b95930a17e86b from https://github.com/MIPS/gcc Signed-off-by: Andrew Bennett Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc

[PATCH v2 11/18] Add -minline-intermix to ignore mips16/nomips16

2025-03-17 Thread Aleksandar Rakic
: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 72 ++- gcc/config/mips/mips.opt | 4 ++ gcc/doc/extend.texi | 17 + gcc/doc/invoke.texi

[PATCH v2 08/18] Add -mfunc-opt-list=

2025-03-17 Thread Aleksandar Rakic
. * doc/invoke.texi (mfunc-opt-list): Document new option. Cherry-picked e2ff99868adedb1a563ee69b3076838dd7ae4450 from https://github.com/MIPS/gcc Signed-off-by: Simon Dardis Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips

[PATCH v2 15/18] Inefficient scattered double precision load in MSA

2025-03-17 Thread Aleksandar Rakic
: Aleksandar Rakic --- gcc/config/mips/mips.cc | 19 +++ 1 file changed, 19 insertions(+) diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index 1385607eafc..b1e687a0f31 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config/mips/mips.cc @@ -24906,6 +24906,22

[PATCH v2 0/10] Improvements for the targets other than mips64r6

2025-03-17 Thread Aleksandar Rakic
This patch series improves the support for the targets other than mips64r6 in GCC. These patches are cherry-picked from the mips_rel/9_3_0/master branch from the MIPS' repository: https://github.com/MIPS/gcc . Further details on the individual changes are included in the respective patches.

[PATCH v2 09/18] Improve inlined memcpy

2025-03-17 Thread Aleksandar Rakic
-off-by: Matthew Fortune Signed-off-by: Robert Suchanek Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 29 +++-- gcc/config/mips/mips.h | 5 + gcc/config/mips/mips.opt | 3 +++ 3 files changed, 27 insertions(+), 10

[PATCH v2 03/18] Add support for -mclib=[newlib,small,tiny]

2025-03-17 Thread Aleksandar Rakic
: Aleksandar Rakic --- gcc/config/mips/mips-opts.h | 7 +++ gcc/config/mips/mips.h | 10 -- gcc/config/mips/mips.opt| 17 + 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/gcc/config/mips/mips-opts.h b/gcc/config/mips/mips-opts.h index 4b0c2c09a3d

[PATCH v2 06/18] Add -msdata-num and -msdata-opt-list support

2025-03-17 Thread Aleksandar Rakic
https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Dragan Mladjenovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 161 ++- gcc/config/mips/mips.opt | 8 ++ gcc/doc/invoke.texi | 36

[PATCH v2 04/18] Add microMIPS R6 support

2025-03-17 Thread Aleksandar Rakic
ned-off-by: Aleksandar Rakic --- gcc/config/mips/constraints.md | 33 ++-- gcc/config/mips/m6200.md | 229 + gcc/config/mips/mips-cpus.def | 3 + gcc/config/mips/mips-dsp.md| 17 +- gcc/config/mips/mips-tables.opt| 49 +

[PATCH v2 17/18] Implement synthesised conditional xor/or

2025-03-17 Thread Aleksandar Rakic
ned-off-by: Chao-ying Fu Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 18 ++- gcc/ifcvt.cc | 135 ++ gcc/testsuite/gcc.target/mips/cond_xor.c | 16 +++ gcc/testsuite/gcc.target/mips/cond_xor1.c | 16 +++ gcc

[PATCH v2 6/7] Performance degradation for iDCT-4M example

2025-03-17 Thread Aleksandar Rakic
rry-picked 4f440a87ad32b3549be8a0b89900d656ac70d4f8 and 1eb9d22dc480c962027eed522e0b26d0ebbd3e0b from https://github.com/MIPS/gcc Signed-off-by: Dragan Mladjenovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 61 +++ gcc/config/mip

[PATCH v2 1/1] Possible inlining improvements with -Os

2025-03-17 Thread Aleksandar Rakic
. Cherry-picked c38d7e548cbb3defb141efb528cb356333e8eb7a from https://github.com/MIPS/gcc Signed-off-by: Robert Suchanek Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/ipa-inline.cc | 4 +++- gcc/params.opt| 8 2 files changed, 11 insertions(+), 1 deletion

[PATCH v2 0/18] Mips target improvements

2025-03-17 Thread Aleksandar Rakic
This patch series improves the support for the mips target in GCC, and adds the support for the new architectures. These patches are cherry-picked from the mips_rel/11_2_0/master and mips_rel/9_3_0/master branches from the MIPS' repository: https://github.com/MIPS/gcc . Further details on the indi

[PATCH v2 16/18] Inefficient 64-bit signed modulo by powers of two

2025-03-17 Thread Aleksandar Rakic
od-pow2.c: New test. Cherry-picked e683ed1717b3f689c959c738a764174fdcdc7998 from https://github.com/MIPS/gcc Signed-off-by: Mihailo Stojanovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips-protos.h| 2 + gcc/config/mips/mips.cc | 143

[PATCH v2 0/1] Improve inlining

2025-03-17 Thread Aleksandar Rakic
From: Aleksandar Rakic Robert Suchanek (1): Possible inlining improvements with -Os gcc/ipa-inline.cc | 4 +++- gcc/params.opt| 8 2 files changed, 11 insertions(+), 1 deletion(-) -- 2.34.1

[PATCH v2 0/1] Improve inlining

2025-03-17 Thread Aleksandar Rakic
This patch series improves the inlining in GCC. This patch is cherry-picked from the mips_rel/9_3_0/master branch from the MIPS' repository: https://github.com/MIPS/gcc . Further details on the individual changes are included in the respective patch.

[PATCH v2 00/18] Mips target improvements

2025-03-17 Thread Aleksandar Rakic
From: Aleksandar Rakic Andrew Bennett (1): Add microMIPS R6 support Chao-ying Fu (3): Hazard barrier return support Add support for -mclib=[newlib,small,tiny] Check anti-dependence between 0 and 3 for loads Matthew Fortune (5): Add support for -mdead-loads Add -msdata-num and

[PATCH v2 2/7] Inefficient scattered complex load with MSA

2025-03-17 Thread Aleksandar Rakic
d-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 9 ++--- .../gcc.target/mips/msa-scattered-load.c | 20 +++ 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 gcc/testsuite/gcc.target/mip

[PATCH v2 4/7] Disable ssa-dom-cse-2.c for MIPS lp64

2025-03-17 Thread Aleksandar Rakic
https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-2.c b/gcc

[PATCH v2 1/7] MIPSR6: Define new R6 FPU instructions

2025-03-17 Thread Aleksandar Rakic
/p6600.md (p6600_fpu_fadd): Include frint type. (p6600_fpu_fabs): Include fclass type. Cherry-picked bbc81087aa0e307aaf262021c40473644ed2a9b2 from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips

[PATCH v2 5/7] Test float32-basic.c fails with -mabi=64 -EB

2025-03-17 Thread Aleksandar Rakic
rry-picked e8414cb48566bf5db33d24c6310d9558cd3b3fc0 from https://github.com/MIPS/gcc Signed-off-by: Dragan Mladjenovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/calls.cc| 7 --- gcc/config/aarch64/aarch64-protos.h | 2 +- gcc/config/aarch64/

[PATCH v2 7/7] Add EHB after last load if branch within 16 inst.

2025-03-17 Thread Aleksandar Rakic
file. Cherry-picked 784408360ef462711181e5cb59f1b0ff575f92ca from https://github.com/MIPS/gcc Signed-off-by: Dragan Mladjenovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 81 --- gcc/config/mips/mips.md

[PATCH v2 0/7] Mips64r6 improvements

2025-03-17 Thread Aleksandar Rakic
From: Aleksandar Rakic Jaydeep Patil (1): MIPSR6: Fix ICE occurred in R6 target Matthew Fortune (2): MIPSR6: Define new R6 FPU instructions Disable ssa-dom-cse-2.c for MIPS lp64 Simon Dardis (1): Inefficient scattered complex load with MSA dragan.mladjenovic (3): Test float32

[PATCH v2 0/7] Mips64r6 improvements

2025-03-17 Thread Aleksandar Rakic
This patch series improves the support for the mips64r6 target in GCC. These patches are cherry-picked from the mips_rel/9_3_0/master branch from the MIPS' repository: https://github.com/MIPS/gcc . Further details on the individual changes are included in the respective patches.

[PATCH 45/61] Test float32-basic.c fails with -mabi=64 -EB

2025-01-31 Thread Aleksandar Rakic
d argument 0: request for padding of known unnamed argument -1: request for padding in unknown context Cherry-picked e8414cb48566bf5db33d24c6310d9558cd3b3fc0 from https://github.com/MIPS/gcc Signed-off-by: Dragan Mladjenovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic

[PATCH 54/61] fmadd.w should be restricted to mipsr6

2025-01-31 Thread Aleksandar Rakic
fmadd/fmsub on !mipsisar6 targets. * lib/target-supports.exp: Define mipsisar6 target. Cherry-picked 7a48948f245a5e46f55d59c6ac0982a815665ccf from https://github.com/MIPS/gcc Signed-off-by: Dragan Mladjenovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic ---

[PATCH 53/61] Inefficient scattered double precision load in MSA

2025-01-31 Thread Aleksandar Rakic
: Aleksandar Rakic --- gcc/config/mips/mips.cc | 19 +++ 1 file changed, 19 insertions(+) diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index 20128c7f537..4894e07f72c 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config/mips/mips.cc @@ -25749,6 +25749,22

[PATCH 60/61] Check anti-dependence between 0 and 3 for loads

2025-01-31 Thread Aleksandar Rakic
/gcc Signed-off-by: Chao-ying Fu Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.md | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 52abb9c1119..c5603c1aa9e 100644 --- a/gcc/config/mips/mips.md +++ b/gcc

[PATCH 52/61] Fix register spill issue for soft-float glibc 2.29

2025-01-31 Thread Aleksandar Rakic
-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.target/mips/tls-1.c | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 gcc/testsuite/gcc.target/mips/tls-1.c diff --git a/gcc/testsuite/gcc.target/mips/tls-1.c b/gcc/testsuite/gcc.target/mips/tls-1.c new

[PATCH 42/61] Remove redundant moves

2025-01-31 Thread Aleksandar Rakic
Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.md | 24 1 file changed, 24 insertions(+) diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 159fc2e2615..1243f20f344 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -5254,6

[PATCH 48/61] Performance degradation for iDCT-4M example

2025-01-31 Thread Aleksandar Rakic
rry-picked 4f440a87ad32b3549be8a0b89900d656ac70d4f8 and 1eb9d22dc480c962027eed522e0b26d0ebbd3e0b from https://github.com/MIPS/gcc Signed-off-by: Dragan Mladjenovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 61 +++ gcc/config/mip

[PATCH 39/61] Frame barrier fix

2025-01-31 Thread Aleksandar Rakic
-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index dcb4b9f9f99..57a858aca39 100644 --- a/gcc/config/mips

[PATCH 61/61] Fix pr54240

2025-01-31 Thread Aleksandar Rakic
From: Chao-ying Fu gcc/testsuite/ * gcc.target/mips/pr54240.c: Scan phiopt2. Cherry-picked 02dd052d4822ca187af075f1fb5301c954844144 from https://github.com/MIPS/gcc Signed-off-by: Chao-ying Fu Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.target/mips/pr54240.c | 2 +- 1 file

[PATCH 57/61] Implement synthesised conditional xor/or

2025-01-31 Thread Aleksandar Rakic
ned-off-by: Chao-ying Fu Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 18 ++- gcc/ifcvt.cc | 135 ++ gcc/testsuite/gcc.target/mips/cond_xor.c | 15 +++ gcc/testsuite/gcc.target/mips/cond_xor1.c | 15 +++ gcc

[PATCH 49/61] Make rtl if-conversion more common

2025-01-31 Thread Aleksandar Rakic
by: Dragan Mladjenovic Signed-off-by: Mihailo Stojanovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 65 +++ gcc/testsuite/gcc.target/mips/branch-cost-1.c | 2 +- 2 files changed, 66 insertions(+),

[PATCH 41/61] Lightweight fix for shrink-wrapping inhibition

2025-01-31 Thread Aleksandar Rakic
from being related to the prologue and only affects shrink wrapping. Cherry-picked 4ea3a82b5e8e23591d79a9ca63018acceb53c2a5 from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 12

[PATCH 55/61] Performance drop in mips-img-linux-gnu-gcc 7.x

2025-01-31 Thread Aleksandar Rakic
. * targhooks.c: Define the default target hook prototype. * doc/tm.texi: Regenerated. Cherry-picked 64e5b4b4ff53872482454908a29c94665e40d25c from https://github.com/MIPS/gcc Signed-off-by: Mihailo Stojanovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips

[PATCH 47/61] Add -mmxu and -mno-mxu driver pass through

2025-01-31 Thread Aleksandar Rakic
From: Matthew Fortune Cherry-picked 9acbf0b0efdfcc27e30b1db7a707dbe9cc6b64eb from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc

[PATCH 50/61] Fix MSA SUBREG moves on big-endian targets

2025-01-31 Thread Aleksandar Rakic
00 from https://github.com/MIPS/gcc Signed-off-by: Mihailo Stojanovic Signed-off-by: Dragan Mladjenovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips-msa.md | 1056 + gcc/config/mips/mips-protos.h |2

[PATCH 35/61] Testsuite: Use HAS_LDC instead of a specific ISA

2025-01-31 Thread Aleksandar Rakic
option instead of isa>=2. Cherry-picked e9df15b1a308aa8a10473c820f35d628fa8f2efb from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.target/mips/call-clobbered-1.c | 2 +- 1 file changed

[PATCH 44/61] Autovectorization failures on BE targets

2025-01-31 Thread Aleksandar Rakic
rry-picked c00d34621429f31926e0c72e027b0c1028d046f0 from https://github.com/MIPS/gcc Signed-off-by: Dragan Mladjenovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips-msa.md | 37 + gcc/config/mips/mips.cc | 29 ++

[PATCH 51/61] Test solution on dspmac builtins

2025-01-31 Thread Aleksandar Rakic
testcase. Cherry-picked 110ec7a3e56737bb8ed2ae653298aa55ad014377 and 712169a3630d45284ddd6ea6d0dedcb2b60e0ba4 from https://github.com/MIPS/gcc Signed-off-by: Mihailo Stojanovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 24

[PATCH 28/61] Fix wrong instruction in the delay slot

2025-01-31 Thread Aleksandar Rakic
found. (first_active_target_insn): Likewise. Don't ignore the empty block when searching for the next active instruction. Cherry-picked 3667d07c7f0512e8996eab9ab75efc79ac1827c2 from https://github.com/MIPS/gcc Signed-off-by: Robert Suchanek Signed-off-by: Faraz Shahbazker Signe

[PATCH 27/61] MIPSR6: Define new R6 FPU instructions

2025-01-31 Thread Aleksandar Rakic
/p6600.md (p6600_fpu_fadd): Include frint type. (p6600_fpu_fabs): Include fclass type. Cherry-picked bbc81087aa0e307aaf262021c40473644ed2a9b2 from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips

[PATCH 38/61] MIPSR6: Mark R6 unaligned access

2025-01-31 Thread Aleksandar Rakic
-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 36 +++- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index a1208bcef69..dcb4b9f9f99 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config/mips

[PATCH 59/61] Add uclibc support

2025-01-31 Thread Aleksandar Rakic
ae756 from https://github.com/MIPS/gcc Signed-off-by: Jean Lee Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- libsanitizer/asan/asan_descriptions.cpp | 5 ++ libsanitizer/asan/asan_linux.cpp | 2 +- .../interception/interception_linux.cpp

[PATCH 58/61] Add EHB after last load if branch within 16 inst.

2025-01-31 Thread Aleksandar Rakic
file. Cherry-picked 784408360ef462711181e5cb59f1b0ff575f92ca from https://github.com/MIPS/gcc Signed-off-by: Dragan Mladjenovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips.cc | 81 --- gcc/config/mips/mips.md

[PATCH 26/61] Load/store bonding improvements

2025-01-31 Thread Aleksandar Rakic
Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/config/mips/mips-protos.h | 2 +- gcc/config/mips/mips.cc | 399 -- gcc/config/mips/mips.md | 28 ++- gcc/config/mips/predicates.md | 5 + 4 files changed, 404 inserti

[PATCH 36/61] Testsuite: Disable the time-profiler-2.c test

2025-01-31 Thread Aleksandar Rakic
Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.dg/tree-prof/time-profiler-2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/tree-prof/time-profiler-2.c b/gcc/testsuite/gcc.dg/tree-prof/time-profiler-2.c index eed0b1dd08d..bcf9adf1b09 100644 --- a/gcc

[PATCH 37/61] Testsuite: Skip tests making calls to variables

2025-01-31 Thread Aleksandar Rakic
(check_effective_target_mips_compressed): New function. Cherry-picked 97f2d5c6403c0cb8b65e059349ec18ffc9505bfd from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar Rakic --- gcc/testsuite/gcc.c-torture/compile/20020129-1.c | 5 + gcc

  1   2   >