diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2022-11-04 15:16:28 -0500 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2022-11-07 08:35:26 -0800 |
| commit | 24df593f8165562a194f688bbaa6771cdd41d40f (patch) | |
| tree | 6f428ed303a532601525b593eb277a6ef6395dd2 /meta-microblaze/recipes-devtools | |
| parent | 75c67a6c15fed677378ab52ed90b6ca0e5125936 (diff) | |
| download | meta-xilinx-24df593f8165562a194f688bbaa6771cdd41d40f.tar.gz | |
gcc-microblaze: Update to new version of the port
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-microblaze/recipes-devtools')
54 files changed, 556 insertions, 560 deletions
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0001-LOCAL-Testsuite-builtins-tests-require-fpic.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0001-LOCAL-Testsuite-builtins-tests-require-fpic.patch index 9750cee8..1099a0e8 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0001-LOCAL-Testsuite-builtins-tests-require-fpic.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0001-LOCAL-Testsuite-builtins-tests-require-fpic.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 89825e41d91ef04532a7a53d72f4eb33ad40d1d9 Mon Sep 17 00:00:00 2001 | 1 | From 376b0ee790231a99fe50b50e20070c104bbba0d8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Wed, 11 Jan 2017 13:13:57 +0530 | 3 | Date: Wed, 11 Jan 2017 13:13:57 +0530 |
| 4 | Subject: [PATCH 01/53] LOCAL]: Testsuite - builtins tests require fpic | 4 | Subject: [PATCH 01/53] LOCAL]: Testsuite - builtins tests require fpic |
| @@ -12,7 +12,7 @@ Conflicts: | |||
| 12 | 1 file changed, 8 insertions(+) | 12 | 1 file changed, 8 insertions(+) |
| 13 | 13 | ||
| 14 | diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp | 14 | diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp |
| 15 | index baec137d9a3..ad62a7348bc 100644 | 15 | index fb47f51f90c..d9ecf045554 100644 |
| 16 | --- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp | 16 | --- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp |
| 17 | +++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp | 17 | +++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp |
| 18 | @@ -48,6 +48,14 @@ if { [istarget *-*-eabi*] | 18 | @@ -48,6 +48,14 @@ if { [istarget *-*-eabi*] |
| @@ -31,5 +31,5 @@ index baec137d9a3..ad62a7348bc 100644 | |||
| 31 | if {![string match *-lib.c $src] && [runtest_file_p $runtests $src]} { | 31 | if {![string match *-lib.c $src] && [runtest_file_p $runtests $src]} { |
| 32 | c-torture-execute [list $src \ | 32 | c-torture-execute [list $src \ |
| 33 | -- | 33 | -- |
| 34 | 2.17.1 | 34 | 2.37.1 (Apple Git-137.1) |
| 35 | 35 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0002-LOCAL-Quick-fail-g-.dg-opt-memcpy1.C.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0002-LOCAL-Quick-fail-g-.dg-opt-memcpy1.C.patch index bfb98bcd..061dfc86 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0002-LOCAL-Quick-fail-g-.dg-opt-memcpy1.C.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0002-LOCAL-Quick-fail-g-.dg-opt-memcpy1.C.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 997e53fc324c3414d09a883a7bff28e1e346c847 Mon Sep 17 00:00:00 2001 | 1 | From b1aea8e71692065497ee3e9be5a9f1fccecf5685 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Wed, 11 Jan 2017 14:31:10 +0530 | 3 | Date: Wed, 11 Jan 2017 14:31:10 +0530 |
| 4 | Subject: [PATCH 02/53] [LOCAL]: Quick fail g++.dg/opt/memcpy1.C This | 4 | Subject: [PATCH 02/53] [LOCAL]: Quick fail g++.dg/opt/memcpy1.C This |
| @@ -27,5 +27,5 @@ index 3862756083d..db9f990f781 100644 | |||
| 27 | typedef uint8_t uint8; | 27 | typedef uint8_t uint8; |
| 28 | __extension__ typedef __SIZE_TYPE__ size_t; | 28 | __extension__ typedef __SIZE_TYPE__ size_t; |
| 29 | -- | 29 | -- |
| 30 | 2.17.1 | 30 | 2.37.1 (Apple Git-137.1) |
| 31 | 31 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0003-LOCAL-For-dejagnu-static-testing-on-qemu-suppress-wa.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0003-LOCAL-For-dejagnu-static-testing-on-qemu-suppress-wa.patch index 6a4b907a..1b5d428e 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0003-LOCAL-For-dejagnu-static-testing-on-qemu-suppress-wa.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0003-LOCAL-For-dejagnu-static-testing-on-qemu-suppress-wa.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 66fb54b40c49c86e8cefa94523a3f65a6779d6f2 Mon Sep 17 00:00:00 2001 | 1 | From af78edb2cb91c55f54ac2d720cee9871da13b845 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Wed, 11 Jan 2017 15:46:28 +0530 | 3 | Date: Wed, 11 Jan 2017 15:46:28 +0530 |
| 4 | Subject: [PATCH 03/53] [LOCAL]: For dejagnu static testing on qemu, suppress | 4 | Subject: [PATCH 03/53] [LOCAL]: For dejagnu static testing on qemu, suppress |
| @@ -12,7 +12,7 @@ Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | |||
| 12 | 1 file changed, 4 deletions(-) | 12 | 1 file changed, 4 deletions(-) |
| 13 | 13 | ||
| 14 | diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp | 14 | diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp |
| 15 | index ad62a7348bc..3a38fb1de91 100644 | 15 | index d9ecf045554..d6c2b04f286 100644 |
| 16 | --- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp | 16 | --- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp |
| 17 | +++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp | 17 | +++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp |
| 18 | @@ -48,14 +48,10 @@ if { [istarget *-*-eabi*] | 18 | @@ -48,14 +48,10 @@ if { [istarget *-*-eabi*] |
| @@ -31,5 +31,5 @@ index ad62a7348bc..3a38fb1de91 100644 | |||
| 31 | if {![string match *-lib.c $src] && [runtest_file_p $runtests $src]} { | 31 | if {![string match *-lib.c $src] && [runtest_file_p $runtests $src]} { |
| 32 | c-torture-execute [list $src \ | 32 | c-torture-execute [list $src \ |
| 33 | -- | 33 | -- |
| 34 | 2.17.1 | 34 | 2.37.1 (Apple Git-137.1) |
| 35 | 35 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0004-Patch-testsuite-Add-MicroBlaze-to-target-supports-fo.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0004-Patch-testsuite-Add-MicroBlaze-to-target-supports-fo.patch index 0d907474..8db33100 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0004-Patch-testsuite-Add-MicroBlaze-to-target-supports-fo.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0004-Patch-testsuite-Add-MicroBlaze-to-target-supports-fo.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From dd488cfaf9f909462290c85a1e30665f6252cbf1 Mon Sep 17 00:00:00 2001 | 1 | From 34b7dd28e3fe40f55ec7f6df3f000dd797d6c1cc Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Wed, 11 Jan 2017 15:50:35 +0530 | 3 | Date: Wed, 11 Jan 2017 15:50:35 +0530 |
| 4 | Subject: [PATCH 04/53] [Patch, testsuite]: Add MicroBlaze to target-supports | 4 | Subject: [PATCH 04/53] [Patch, testsuite]: Add MicroBlaze to target-supports |
| @@ -19,10 +19,10 @@ Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | |||
| 19 | 1 file changed, 1 insertion(+) | 19 | 1 file changed, 1 insertion(+) |
| 20 | 20 | ||
| 21 | diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp | 21 | diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp |
| 22 | index 411e559f508..9e6a1480e8f 100644 | 22 | index 244fe2306f4..c19f251f0d2 100644 |
| 23 | --- a/gcc/testsuite/lib/target-supports.exp | 23 | --- a/gcc/testsuite/lib/target-supports.exp |
| 24 | +++ b/gcc/testsuite/lib/target-supports.exp | 24 | +++ b/gcc/testsuite/lib/target-supports.exp |
| 25 | @@ -7958,6 +7958,7 @@ proc check_effective_target_sync_int_long { } { | 25 | @@ -8639,6 +8639,7 @@ proc check_effective_target_sync_int_long { } { |
| 26 | && [check_effective_target_arm_acq_rel]) | 26 | && [check_effective_target_arm_acq_rel]) |
| 27 | || [istarget bfin*-*linux*] | 27 | || [istarget bfin*-*linux*] |
| 28 | || [istarget hppa*-*linux*] | 28 | || [istarget hppa*-*linux*] |
| @@ -31,5 +31,5 @@ index 411e559f508..9e6a1480e8f 100644 | |||
| 31 | || [istarget powerpc*-*-*] | 31 | || [istarget powerpc*-*-*] |
| 32 | || [istarget cris-*-*] | 32 | || [istarget cris-*-*] |
| 33 | -- | 33 | -- |
| 34 | 2.17.1 | 34 | 2.37.1 (Apple Git-137.1) |
| 35 | 35 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0005-Patch-testsuite-Update-MicroBlaze-strings-test.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0005-Patch-testsuite-Update-MicroBlaze-strings-test.patch index 1714c142..0fb32850 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0005-Patch-testsuite-Update-MicroBlaze-strings-test.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0005-Patch-testsuite-Update-MicroBlaze-strings-test.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 5576c4ca7641833a91b19b36d105a6b852c1a0cc Mon Sep 17 00:00:00 2001 | 1 | From 2d0b5d68aff95a95dfb4ed0b207849658502bd53 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Wed, 11 Jan 2017 16:20:01 +0530 | 3 | Date: Wed, 11 Jan 2017 16:20:01 +0530 |
| 4 | Subject: [PATCH 05/53] [Patch, testsuite]: Update MicroBlaze strings test for | 4 | Subject: [PATCH 05/53] [Patch, testsuite]: Update MicroBlaze strings test for |
| @@ -32,5 +32,5 @@ index efaf3c660ea..347872360d3 100644 | |||
| 32 | 32 | ||
| 33 | extern void somefunc (char *); | 33 | extern void somefunc (char *); |
| 34 | -- | 34 | -- |
| 35 | 2.17.1 | 35 | 2.37.1 (Apple Git-137.1) |
| 36 | 36 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0006-Patch-testsuite-Allow-MicroBlaze-.weakext-pattern-in.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0006-Patch-testsuite-Allow-MicroBlaze-.weakext-pattern-in.patch index def6e95e..a82f11cc 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0006-Patch-testsuite-Allow-MicroBlaze-.weakext-pattern-in.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0006-Patch-testsuite-Allow-MicroBlaze-.weakext-pattern-in.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From ea6a9f11d6a866fe20cca13d06c7386754543e6c Mon Sep 17 00:00:00 2001 | 1 | From 20b6479f240bfebb46daad06839286a7abcff56c Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Thu, 12 Jan 2017 16:14:15 +0530 | 3 | Date: Thu, 12 Jan 2017 16:14:15 +0530 |
| 4 | Subject: [PATCH 06/53] [Patch, testsuite]: Allow MicroBlaze .weakext pattern | 4 | Subject: [PATCH 06/53] [Patch, testsuite]: Allow MicroBlaze .weakext pattern |
| @@ -63,5 +63,5 @@ index 6e8f124bc5e..d1d34fe1e4a 100644 | |||
| 63 | 63 | ||
| 64 | struct Base | 64 | struct Base |
| 65 | -- | 65 | -- |
| 66 | 2.17.1 | 66 | 2.37.1 (Apple Git-137.1) |
| 67 | 67 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0007-Patch-testsuite-Add-MicroBlaze-to-check_profiling_av.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0007-Patch-testsuite-Add-MicroBlaze-to-check_profiling_av.patch index 5f72ecd2..736f5cd1 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0007-Patch-testsuite-Add-MicroBlaze-to-check_profiling_av.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0007-Patch-testsuite-Add-MicroBlaze-to-check_profiling_av.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From fe007d78e220606b220dfc452fe9564ebfecd57a Mon Sep 17 00:00:00 2001 | 1 | From 0efefd8ac71dd084c745402afdf07319de9774c6 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Thu, 12 Jan 2017 16:34:27 +0530 | 3 | Date: Thu, 12 Jan 2017 16:34:27 +0530 |
| 4 | Subject: [PATCH 07/53] [Patch, testsuite]: Add MicroBlaze to | 4 | Subject: [PATCH 07/53] [Patch, testsuite]: Add MicroBlaze to |
| @@ -12,10 +12,10 @@ Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | |||
| 12 | 1 file changed, 1 insertion(+) | 12 | 1 file changed, 1 insertion(+) |
| 13 | 13 | ||
| 14 | diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp | 14 | diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp |
| 15 | index 9e6a1480e8f..7e9d0889f76 100644 | 15 | index c19f251f0d2..c136c93e673 100644 |
| 16 | --- a/gcc/testsuite/lib/target-supports.exp | 16 | --- a/gcc/testsuite/lib/target-supports.exp |
| 17 | +++ b/gcc/testsuite/lib/target-supports.exp | 17 | +++ b/gcc/testsuite/lib/target-supports.exp |
| 18 | @@ -727,6 +727,7 @@ proc check_profiling_available { test_what } { | 18 | @@ -729,6 +729,7 @@ proc check_profiling_available { test_what } { |
| 19 | || [istarget m68k-*-elf] | 19 | || [istarget m68k-*-elf] |
| 20 | || [istarget m68k-*-uclinux*] | 20 | || [istarget m68k-*-uclinux*] |
| 21 | || [istarget mips*-*-elf*] | 21 | || [istarget mips*-*-elf*] |
| @@ -24,5 +24,5 @@ index 9e6a1480e8f..7e9d0889f76 100644 | |||
| 24 | || [istarget mn10300-*-elf*] | 24 | || [istarget mn10300-*-elf*] |
| 25 | || [istarget moxie-*-elf*] | 25 | || [istarget moxie-*-elf*] |
| 26 | -- | 26 | -- |
| 27 | 2.17.1 | 27 | 2.37.1 (Apple Git-137.1) |
| 28 | 28 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0008-Patch-microblaze-Fix-atomic-side-effects.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0008-Patch-microblaze-Fix-atomic-side-effects.patch index 78dc5dcd..451070c0 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0008-Patch-microblaze-Fix-atomic-side-effects.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0008-Patch-microblaze-Fix-atomic-side-effects.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 63b07793addb119dfc3ec0a30225e767d8f48706 Mon Sep 17 00:00:00 2001 | 1 | From 42ab0f7a2e6834feed456d00b3e2ec0ae2532a41 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Thu, 12 Jan 2017 16:41:43 +0530 | 3 | Date: Thu, 12 Jan 2017 16:41:43 +0530 |
| 4 | Subject: [PATCH 08/53] [Patch, microblaze]: Fix atomic side effects. In | 4 | Subject: [PATCH 08/53] [Patch, microblaze]: Fix atomic side effects. In |
| @@ -18,7 +18,7 @@ Conflicts: | |||
| 18 | 2 files changed, 16 insertions(+), 8 deletions(-) | 18 | 2 files changed, 16 insertions(+), 8 deletions(-) |
| 19 | 19 | ||
| 20 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 20 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 21 | index 472ef4c1d8d..b02034c9f1e 100644 | 21 | index 0765ff930c6..ea7f74f1dff 100644 |
| 22 | --- a/gcc/config/microblaze/microblaze.md | 22 | --- a/gcc/config/microblaze/microblaze.md |
| 23 | +++ b/gcc/config/microblaze/microblaze.md | 23 | +++ b/gcc/config/microblaze/microblaze.md |
| 24 | @@ -43,6 +43,9 @@ | 24 | @@ -43,6 +43,9 @@ |
| @@ -32,7 +32,7 @@ index 472ef4c1d8d..b02034c9f1e 100644 | |||
| 32 | 32 | ||
| 33 | (define_c_enum "unspec" [ | 33 | (define_c_enum "unspec" [ |
| 34 | diff --git a/gcc/config/microblaze/sync.md b/gcc/config/microblaze/sync.md | 34 | diff --git a/gcc/config/microblaze/sync.md b/gcc/config/microblaze/sync.md |
| 35 | index 23e0f1c52e2..3b0fba1d3cf 100644 | 35 | index ae8955ce691..77c3ce8ff27 100644 |
| 36 | --- a/gcc/config/microblaze/sync.md | 36 | --- a/gcc/config/microblaze/sync.md |
| 37 | +++ b/gcc/config/microblaze/sync.md | 37 | +++ b/gcc/config/microblaze/sync.md |
| 38 | @@ -18,14 +18,19 @@ | 38 | @@ -18,14 +18,19 @@ |
| @@ -64,5 +64,5 @@ index 23e0f1c52e2..3b0fba1d3cf 100644 | |||
| 64 | "" | 64 | "" |
| 65 | { | 65 | { |
| 66 | -- | 66 | -- |
| 67 | 2.17.1 | 67 | 2.37.1 (Apple Git-137.1) |
| 68 | 68 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0009-Patch-microblaze-Fix-atomic-boolean-return-value.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0009-Patch-microblaze-Fix-atomic-boolean-return-value.patch index 824b031c..c7efbb07 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0009-Patch-microblaze-Fix-atomic-boolean-return-value.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0009-Patch-microblaze-Fix-atomic-boolean-return-value.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 0aa9647936673e3ff1ac0082144b196309916ddb Mon Sep 17 00:00:00 2001 | 1 | From a1b8136a157c549f0f65c14d628e694310ca0d23 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Thu, 12 Jan 2017 16:45:45 +0530 | 3 | Date: Thu, 12 Jan 2017 16:45:45 +0530 |
| 4 | Subject: [PATCH 09/53] [Patch, microblaze]: Fix atomic boolean return value. | 4 | Subject: [PATCH 09/53] [Patch, microblaze]: Fix atomic boolean return value. |
| @@ -12,7 +12,7 @@ Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | |||
| 12 | 1 file changed, 4 insertions(+), 3 deletions(-) | 12 | 1 file changed, 4 insertions(+), 3 deletions(-) |
| 13 | 13 | ||
| 14 | diff --git a/gcc/config/microblaze/sync.md b/gcc/config/microblaze/sync.md | 14 | diff --git a/gcc/config/microblaze/sync.md b/gcc/config/microblaze/sync.md |
| 15 | index 3b0fba1d3cf..d08400af4bb 100644 | 15 | index 77c3ce8ff27..573ce4765a0 100644 |
| 16 | --- a/gcc/config/microblaze/sync.md | 16 | --- a/gcc/config/microblaze/sync.md |
| 17 | +++ b/gcc/config/microblaze/sync.md | 17 | +++ b/gcc/config/microblaze/sync.md |
| 18 | @@ -34,15 +34,16 @@ | 18 | @@ -34,15 +34,16 @@ |
| @@ -36,5 +36,5 @@ index 3b0fba1d3cf..d08400af4bb 100644 | |||
| 36 | } | 36 | } |
| 37 | ) | 37 | ) |
| 38 | -- | 38 | -- |
| 39 | 2.17.1 | 39 | 2.37.1 (Apple Git-137.1) |
| 40 | 40 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0010-Patch-microblaze-Fix-the-Microblaze-crash-with-msmal.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0010-Patch-microblaze-Fix-the-Microblaze-crash-with-msmal.patch index a1ba1188..1bffafa9 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0010-Patch-microblaze-Fix-the-Microblaze-crash-with-msmal.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0010-Patch-microblaze-Fix-the-Microblaze-crash-with-msmal.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From a950e2d4fb15e9ebabe11a5606f24a510f297d6d Mon Sep 17 00:00:00 2001 | 1 | From 1ab5b8af098d100a1d7af05cca680b3c7181549d Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Thu, 12 Jan 2017 16:50:17 +0530 | 3 | Date: Thu, 12 Jan 2017 16:50:17 +0530 |
| 4 | Subject: [PATCH 10/53] [Patch, microblaze]: Fix the Microblaze crash with | 4 | Subject: [PATCH 10/53] [Patch, microblaze]: Fix the Microblaze crash with |
| @@ -10,15 +10,18 @@ Subject: [PATCH 10/53] [Patch, microblaze]: Fix the Microblaze crash with | |||
| 10 | avoid sub_reg call | 10 | avoid sub_reg call |
| 11 | 11 | ||
| 12 | Signed-off-by:Nagaraju Mekala <nmekala@xilix.com> | 12 | Signed-off-by:Nagaraju Mekala <nmekala@xilix.com> |
| 13 | |||
| 14 | Conflicts: | ||
| 15 | gcc/config/microblaze/microblaze.c | ||
| 13 | --- | 16 | --- |
| 14 | gcc/config/microblaze/microblaze.cc | 3 +-- | 17 | gcc/config/microblaze/microblaze.cc | 3 +-- |
| 15 | 1 file changed, 1 insertion(+), 2 deletions(-) | 18 | 1 file changed, 1 insertion(+), 2 deletions(-) |
| 16 | 19 | ||
| 17 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | 20 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 18 | =================================================================== | 21 | index f32effecfb6..6922dd94af7 100644 |
| 19 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.cc | 22 | --- a/gcc/config/microblaze/microblaze.cc |
| 20 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.cc | 23 | +++ b/gcc/config/microblaze/microblaze.cc |
| 21 | @@ -3710,8 +3710,7 @@ microblaze_expand_divide (rtx operands[] | 24 | @@ -3710,8 +3710,7 @@ microblaze_expand_divide (rtx operands[]) |
| 22 | mem_rtx = gen_rtx_MEM (QImode, | 25 | mem_rtx = gen_rtx_MEM (QImode, |
| 23 | gen_rtx_PLUS (Pmode, regt1, div_table_rtx)); | 26 | gen_rtx_PLUS (Pmode, regt1, div_table_rtx)); |
| 24 | 27 | ||
| @@ -28,3 +31,6 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 28 | jump = emit_jump_insn_after (gen_jump (div_end_label), insn); | 31 | jump = emit_jump_insn_after (gen_jump (div_end_label), insn); |
| 29 | JUMP_LABEL (jump) = div_end_label; | 32 | JUMP_LABEL (jump) = div_end_label; |
| 30 | LABEL_NUSES (div_end_label) = 1; | 33 | LABEL_NUSES (div_end_label) = 1; |
| 34 | -- | ||
| 35 | 2.37.1 (Apple Git-137.1) | ||
| 36 | |||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0011-Patch-microblaze-Added-ashrsi3_with_size_opt.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0011-Patch-microblaze-Added-ashrsi3_with_size_opt.patch index 597e4e6e..1bd73b8a 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0011-Patch-microblaze-Added-ashrsi3_with_size_opt.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0011-Patch-microblaze-Added-ashrsi3_with_size_opt.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 3c984648f42e5fcf586c4327f108486fb8630f0d Mon Sep 17 00:00:00 2001 | 1 | From 7dd4ae2ad891094aa85a907b168cbdce744789e9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Thu, 12 Jan 2017 16:52:56 +0530 | 3 | Date: Thu, 12 Jan 2017 16:52:56 +0530 |
| 4 | Subject: [PATCH 11/53] [Patch, microblaze]: Added ashrsi3_with_size_opt Added | 4 | Subject: [PATCH 11/53] [Patch, microblaze]: Added ashrsi3_with_size_opt Added |
| @@ -12,7 +12,7 @@ Signed-off-by:Nagaraju Mekala <nmekala@xilix.com> | |||
| 12 | 1 file changed, 21 insertions(+) | 12 | 1 file changed, 21 insertions(+) |
| 13 | 13 | ||
| 14 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 14 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 15 | index b02034c9f1e..55477fd0a69 100644 | 15 | index ea7f74f1dff..9fbb3113f3c 100644 |
| 16 | --- a/gcc/config/microblaze/microblaze.md | 16 | --- a/gcc/config/microblaze/microblaze.md |
| 17 | +++ b/gcc/config/microblaze/microblaze.md | 17 | +++ b/gcc/config/microblaze/microblaze.md |
| 18 | @@ -1508,6 +1508,27 @@ | 18 | @@ -1508,6 +1508,27 @@ |
| @@ -44,5 +44,5 @@ index b02034c9f1e..55477fd0a69 100644 | |||
| 44 | [(set (match_operand:SI 0 "register_operand" "=&d") | 44 | [(set (match_operand:SI 0 "register_operand" "=&d") |
| 45 | (ashiftrt:SI (match_operand:SI 1 "register_operand" "d") | 45 | (ashiftrt:SI (match_operand:SI 1 "register_operand" "d") |
| 46 | -- | 46 | -- |
| 47 | 2.17.1 | 47 | 2.37.1 (Apple Git-137.1) |
| 48 | 48 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch index 917b6d70..f40fff9a 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From fa6e9e4317f9adb0748ade5029cbe3a10504ab54 Mon Sep 17 00:00:00 2001 | 1 | From 12d7e086376916ef61e2c48639671fd0f7c8fbbf Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 17 Jan 2017 10:57:19 +0530 | 3 | Date: Tue, 17 Jan 2017 10:57:19 +0530 |
| 4 | Subject: [PATCH 12/53] [Patch, microblaze]: Use bralid for profiler calls | 4 | Subject: [PATCH 12/53] [Patch, microblaze]: Use bralid for profiler calls |
| @@ -9,7 +9,7 @@ Subject: [PATCH 12/53] [Patch, microblaze]: Use bralid for profiler calls | |||
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) | 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 10 | 10 | ||
| 11 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h | 11 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h |
| 12 | index 2ecec750526..e32ce7dbb51 100644 | 12 | index d28bc766de8..cd544f2030e 100644 |
| 13 | --- a/gcc/config/microblaze/microblaze.h | 13 | --- a/gcc/config/microblaze/microblaze.h |
| 14 | +++ b/gcc/config/microblaze/microblaze.h | 14 | +++ b/gcc/config/microblaze/microblaze.h |
| 15 | @@ -486,7 +486,7 @@ typedef struct microblaze_args | 15 | @@ -486,7 +486,7 @@ typedef struct microblaze_args |
| @@ -22,5 +22,5 @@ index 2ecec750526..e32ce7dbb51 100644 | |||
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | -- | 24 | -- |
| 25 | 2.17.1 | 25 | 2.37.1 (Apple Git-137.1) |
| 26 | 26 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0013-Patch-microblaze-Removed-moddi3-routinue.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0013-Patch-microblaze-Removed-moddi3-routinue.patch index 64cb1e88..5c927264 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0013-Patch-microblaze-Removed-moddi3-routinue.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0013-Patch-microblaze-Removed-moddi3-routinue.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From a5b58621655fa306c37157dfe3092547adce0aab Mon Sep 17 00:00:00 2001 | 1 | From cd8c9f3c43b266628d1585b74fc78f3e34a33c44 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Thu, 12 Jan 2017 17:36:16 +0530 | 3 | Date: Thu, 12 Jan 2017 17:36:16 +0530 |
| 4 | Subject: [PATCH 13/53] [Patch, microblaze]: Removed moddi3 routinue Using the | 4 | Subject: [PATCH 13/53] [Patch, microblaze]: Removed moddi3 routinue Using the |
| @@ -14,9 +14,10 @@ Conflicts: | |||
| 14 | 2 files changed, 1 insertion(+), 123 deletions(-) | 14 | 2 files changed, 1 insertion(+), 123 deletions(-) |
| 15 | delete mode 100644 libgcc/config/microblaze/moddi3.S | 15 | delete mode 100644 libgcc/config/microblaze/moddi3.S |
| 16 | 16 | ||
| 17 | Index: gcc-12.1.0/libgcc/config/microblaze/moddi3.S | 17 | diff --git a/libgcc/config/microblaze/moddi3.S b/libgcc/config/microblaze/moddi3.S |
| 18 | =================================================================== | 18 | deleted file mode 100644 |
| 19 | --- gcc-12.1.0.orig/libgcc/config/microblaze/moddi3.S | 19 | index 9b77865df38..00000000000 |
| 20 | --- a/libgcc/config/microblaze/moddi3.S | ||
| 20 | +++ /dev/null | 21 | +++ /dev/null |
| 21 | @@ -1,121 +0,0 @@ | 22 | @@ -1,121 +0,0 @@ |
| 22 | -################################### | 23 | -################################### |
| @@ -140,10 +141,10 @@ Index: gcc-12.1.0/libgcc/config/microblaze/moddi3.S | |||
| 140 | - addik r1,r1,24 | 141 | - addik r1,r1,24 |
| 141 | - .end __moddi3 | 142 | - .end __moddi3 |
| 142 | - | 143 | - |
| 143 | Index: gcc-12.1.0/libgcc/config/microblaze/t-microblaze | 144 | diff --git a/libgcc/config/microblaze/t-microblaze b/libgcc/config/microblaze/t-microblaze |
| 144 | =================================================================== | 145 | index 96959f0292b..8d954a49575 100644 |
| 145 | --- gcc-12.1.0.orig/libgcc/config/microblaze/t-microblaze | 146 | --- a/libgcc/config/microblaze/t-microblaze |
| 146 | +++ gcc-12.1.0/libgcc/config/microblaze/t-microblaze | 147 | +++ b/libgcc/config/microblaze/t-microblaze |
| 147 | @@ -1,8 +1,7 @@ | 148 | @@ -1,8 +1,7 @@ |
| 148 | -LIB2FUNCS_EXCLUDE += _divsi3 _modsi3 _moddi3 _mulsi3 _udivsi3 _umodsi3 | 149 | -LIB2FUNCS_EXCLUDE += _divsi3 _modsi3 _moddi3 _mulsi3 _udivsi3 _umodsi3 |
| 149 | +LIB2FUNCS_EXCLUDE += _divsi3 _modsi3 _mulsi3 _udivsi3 _umodsi3 | 150 | +LIB2FUNCS_EXCLUDE += _divsi3 _modsi3 _mulsi3 _udivsi3 _umodsi3 |
| @@ -154,3 +155,6 @@ Index: gcc-12.1.0/libgcc/config/microblaze/t-microblaze | |||
| 154 | $(srcdir)/config/microblaze/modsi3.S \ | 155 | $(srcdir)/config/microblaze/modsi3.S \ |
| 155 | $(srcdir)/config/microblaze/muldi3_hard.S \ | 156 | $(srcdir)/config/microblaze/muldi3_hard.S \ |
| 156 | $(srcdir)/config/microblaze/mulsi3.S \ | 157 | $(srcdir)/config/microblaze/mulsi3.S \ |
| 158 | -- | ||
| 159 | 2.37.1 (Apple Git-137.1) | ||
| 160 | |||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0014-Patch-microblaze-Add-INIT_PRIORITY-support.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0014-Patch-microblaze-Add-INIT_PRIORITY-support-Added.patch index abb8fcba..f8bcabe3 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0014-Patch-microblaze-Add-INIT_PRIORITY-support.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0014-Patch-microblaze-Add-INIT_PRIORITY-support-Added.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From a9abf680767f4294177d716cd95a9bec5c7916a7 Mon Sep 17 00:00:00 2001 | 1 | From 30aa7cef2dd076637155384fba539838ddaf0163 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 17 Jan 2017 14:41:58 +0530 | 3 | Date: Mon, 12 Sep 2022 20:20:00 +0530 |
| 4 | Subject: [PATCH 14/53] [Patch, microblaze]: Add INIT_PRIORITY support Added | 4 | Subject: [PATCH 14/53] [Patch, microblaze]: Add INIT_PRIORITY support Added |
| 5 | TARGET_ASM_CONSTRUCTOR and TARGET_ASM_DESTRUCTOR macros. | 5 | TARGET_ASM_CONSTRUCTOR and TARGET_ASM_DESTRUCTOR macros. |
| 6 | 6 | ||
| 7 | These macros allows users to control the order of initialization | 7 | These macros allows users to control the order of initialization |
| @@ -10,26 +10,15 @@ attribute by specifying a relative priority, a constant integral | |||
| 10 | expression currently bounded between 101 and 65535 inclusive. | 10 | expression currently bounded between 101 and 65535 inclusive. |
| 11 | 11 | ||
| 12 | Lower numbers indicate a higher priority. | 12 | Lower numbers indicate a higher priority. |
| 13 | |||
| 14 | Changelog | ||
| 15 | |||
| 16 | 2013-11-26 Nagaraju Mekala <nagaraju.mekala@xilinx.com> | ||
| 17 | |||
| 18 | * gcc/config/microblaze/microblaze.cc: Add microblaze_asm_constructor, | ||
| 19 | microblaze_asm_destructor. Define TARGET_ASM_CONSTRUCTOR and | ||
| 20 | TARGET_ASM_DESTRUCTOR. | ||
| 21 | |||
| 22 | Signed-off-by:nagaraju <nmekala@xilix.com> | ||
| 23 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | ||
| 24 | --- | 13 | --- |
| 25 | gcc/config/microblaze/microblaze.cc | 53 ++++++++++++++++++++++++++++++ | 14 | gcc/config/microblaze/microblaze.cc | 53 +++++++++++++++++++++++++++++ |
| 26 | 1 file changed, 53 insertions(+) | 15 | 1 file changed, 53 insertions(+) |
| 27 | 16 | ||
| 28 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc | 17 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 29 | index 45405fa2160..62630aab64e 100644 | 18 | index 6922dd94af7..4b0621db168 100644 |
| 30 | --- a/gcc/config/microblaze/microblaze.cc | 19 | --- a/gcc/config/microblaze/microblaze.cc |
| 31 | +++ b/gcc/config/microblaze/microblaze.cc | 20 | +++ b/gcc/config/microblaze/microblaze.cc |
| 32 | @@ -2634,6 +2634,53 @@ print_operand_address (FILE * file, rtx addr) | 21 | @@ -2635,6 +2635,53 @@ print_operand_address (FILE * file, rtx addr) |
| 33 | } | 22 | } |
| 34 | } | 23 | } |
| 35 | 24 | ||
| @@ -42,12 +31,12 @@ index 45405fa2160..62630aab64e 100644 | |||
| 42 | + | 31 | + |
| 43 | + if (priority != DEFAULT_INIT_PRIORITY) | 32 | + if (priority != DEFAULT_INIT_PRIORITY) |
| 44 | + { | 33 | + { |
| 45 | + sprintf (buf, ".ctors.%.5u", | 34 | + sprintf (buf, ".ctors.%.5u", |
| 46 | + /* Invert the numbering so the linker puts us in the proper | 35 | + /* Invert the numbering so the linker puts us in the proper |
| 47 | + order; constructors are run from right to left, and the | 36 | + order; constructors are run from right to left, and the |
| 48 | + linker sorts in increasing order. */ | 37 | + linker sorts in increasing order. */ |
| 49 | + MAX_INIT_PRIORITY - priority); | 38 | + MAX_INIT_PRIORITY - priority); |
| 50 | + section = buf; | 39 | + section = buf; |
| 51 | + } | 40 | + } |
| 52 | + | 41 | + |
| 53 | + switch_to_section (get_section (section, 0, NULL)); | 42 | + switch_to_section (get_section (section, 0, NULL)); |
| @@ -65,12 +54,12 @@ index 45405fa2160..62630aab64e 100644 | |||
| 65 | + char buf[16]; | 54 | + char buf[16]; |
| 66 | + if (priority != DEFAULT_INIT_PRIORITY) | 55 | + if (priority != DEFAULT_INIT_PRIORITY) |
| 67 | + { | 56 | + { |
| 68 | + sprintf (buf, ".dtors.%.5u", | 57 | + sprintf (buf, ".dtors.%.5u", |
| 69 | + /* Invert the numbering so the linker puts us in the proper | 58 | + /* Invert the numbering so the linker puts us in the proper |
| 70 | + order; constructors are run from right to left, and the | 59 | + order; constructors are run from right to left, and the |
| 71 | + linker sorts in increasing order. */ | 60 | + linker sorts in increasing order. */ |
| 72 | + MAX_INIT_PRIORITY - priority); | 61 | + MAX_INIT_PRIORITY - priority); |
| 73 | + section = buf; | 62 | + section = buf; |
| 74 | + } | 63 | + } |
| 75 | + | 64 | + |
| 76 | + switch_to_section (get_section (section, 0, NULL)); | 65 | + switch_to_section (get_section (section, 0, NULL)); |
| @@ -83,7 +72,7 @@ index 45405fa2160..62630aab64e 100644 | |||
| 83 | /* Emit either a label, .comm, or .lcomm directive, and mark that the symbol | 72 | /* Emit either a label, .comm, or .lcomm directive, and mark that the symbol |
| 84 | is used, so that we don't emit an .extern for it in | 73 | is used, so that we don't emit an .extern for it in |
| 85 | microblaze_asm_file_end. */ | 74 | microblaze_asm_file_end. */ |
| 86 | @@ -3975,6 +4022,12 @@ microblaze_starting_frame_offset (void) | 75 | @@ -3976,6 +4023,12 @@ microblaze_starting_frame_offset (void) |
| 87 | #undef TARGET_ATTRIBUTE_TABLE | 76 | #undef TARGET_ATTRIBUTE_TABLE |
| 88 | #define TARGET_ATTRIBUTE_TABLE microblaze_attribute_table | 77 | #define TARGET_ATTRIBUTE_TABLE microblaze_attribute_table |
| 89 | 78 | ||
| @@ -97,5 +86,5 @@ index 45405fa2160..62630aab64e 100644 | |||
| 97 | #define TARGET_IN_SMALL_DATA_P microblaze_elf_in_small_data_p | 86 | #define TARGET_IN_SMALL_DATA_P microblaze_elf_in_small_data_p |
| 98 | 87 | ||
| 99 | -- | 88 | -- |
| 100 | 2.17.1 | 89 | 2.37.1 (Apple Git-137.1) |
| 101 | 90 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0015-Patch-microblaze-Add-optimized-lshrsi3.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0015-Patch-microblaze-Add-optimized-lshrsi3.patch index 42d836cb..0f7d356f 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0015-Patch-microblaze-Add-optimized-lshrsi3.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0015-Patch-microblaze-Add-optimized-lshrsi3.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From fe3572f4b0cc033db305b0d67abb88632bf13887 Mon Sep 17 00:00:00 2001 | 1 | From b9bb669d9404bd04676f09c793310e1b7f228674 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 17 Jan 2017 15:23:57 +0530 | 3 | Date: Tue, 17 Jan 2017 15:23:57 +0530 |
| 4 | Subject: [PATCH 15/53] [Patch, microblaze]: Add optimized lshrsi3 When barrel | 4 | Subject: [PATCH 15/53] [Patch, microblaze]: Add optimized lshrsi3 When barrel |
| @@ -26,7 +26,7 @@ Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | |||
| 26 | create mode 100644 gcc/testsuite/gcc.target/microblaze/others/lshrsi_Os_1.c | 26 | create mode 100644 gcc/testsuite/gcc.target/microblaze/others/lshrsi_Os_1.c |
| 27 | 27 | ||
| 28 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 28 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 29 | index 55477fd0a69..f85d8fcac8a 100644 | 29 | index 9fbb3113f3c..52308cce0cb 100644 |
| 30 | --- a/gcc/config/microblaze/microblaze.md | 30 | --- a/gcc/config/microblaze/microblaze.md |
| 31 | +++ b/gcc/config/microblaze/microblaze.md | 31 | +++ b/gcc/config/microblaze/microblaze.md |
| 32 | @@ -1618,6 +1618,27 @@ | 32 | @@ -1618,6 +1618,27 @@ |
| @@ -77,5 +77,5 @@ index 00000000000..32a3be7c76a | |||
| 77 | +/* { dg-final { scan-assembler "bneid\tr18,.-4" } } */ | 77 | +/* { dg-final { scan-assembler "bneid\tr18,.-4" } } */ |
| 78 | +/* { dg-final { scan-assembler "\srl\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1])" } } */ | 78 | +/* { dg-final { scan-assembler "\srl\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1])" } } */ |
| 79 | -- | 79 | -- |
| 80 | 2.17.1 | 80 | 2.37.1 (Apple Git-137.1) |
| 81 | 81 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0016-Patch-microblaze-Add-cbranchsi4_reg.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0016-Patch-microblaze-Add-cbranchsi4_reg.patch index 2f974977..19ae324d 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0016-Patch-microblaze-Add-cbranchsi4_reg.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0016-Patch-microblaze-Add-cbranchsi4_reg.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 3ace42f94961162022e9e7baf3e3509fc1a1bfa4 Mon Sep 17 00:00:00 2001 | 1 | From 08d7bb4062024f3e34fbb17d695f8fa2c9e1b305 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 17 Jan 2017 17:04:37 +0530 | 3 | Date: Tue, 17 Jan 2017 17:04:37 +0530 |
| 4 | Subject: [PATCH 16/53] [Patch, microblaze]: Add cbranchsi4_reg This patch | 4 | Subject: [PATCH 16/53] [Patch, microblaze]: Add cbranchsi4_reg This patch |
| @@ -14,7 +14,7 @@ ChangeLog: | |||
| 14 | Ajit Agarwal <ajitkum@xilinx.com> | 14 | Ajit Agarwal <ajitkum@xilinx.com> |
| 15 | 15 | ||
| 16 | *microblaze.md (cbranchsi4_reg): New | 16 | *microblaze.md (cbranchsi4_reg): New |
| 17 | *microblaze.cc (microblaze_expand_conditional_branch_reg): New | 17 | *microblaze.c (microblaze_expand_conditional_branch_reg): New |
| 18 | 18 | ||
| 19 | Conflicts: | 19 | Conflicts: |
| 20 | 20 | ||
| @@ -30,7 +30,7 @@ Conflicts: | |||
| 30 | 7 files changed, 18 insertions(+), 18 deletions(-) | 30 | 7 files changed, 18 insertions(+), 18 deletions(-) |
| 31 | 31 | ||
| 32 | diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h | 32 | diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h |
| 33 | index 54c26969fbd..3a5f439703c 100644 | 33 | index d67355697b5..848cd509003 100644 |
| 34 | --- a/gcc/config/microblaze/microblaze-protos.h | 34 | --- a/gcc/config/microblaze/microblaze-protos.h |
| 35 | +++ b/gcc/config/microblaze/microblaze-protos.h | 35 | +++ b/gcc/config/microblaze/microblaze-protos.h |
| 36 | @@ -33,7 +33,7 @@ extern int microblaze_expand_shift (rtx *); | 36 | @@ -33,7 +33,7 @@ extern int microblaze_expand_shift (rtx *); |
| @@ -143,5 +143,5 @@ index 1d6ba807b12..532c035adfd 100644 | |||
| 143 | 143 | ||
| 144 | } | 144 | } |
| 145 | -- | 145 | -- |
| 146 | 2.17.1 | 146 | 2.37.1 (Apple Git-137.1) |
| 147 | 147 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0017-Patch-microblaze-Inline-Expansion-of-fsqrt-builtin.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0017-Patch-microblaze-Inline-Expansion-of-fsqrt-builtin.patch index dcc8b6af..e3a98a08 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0017-Patch-microblaze-Inline-Expansion-of-fsqrt-builtin.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0017-Patch-microblaze-Inline-Expansion-of-fsqrt-builtin.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 2c68b0e5e0307019207e54d1f2d1565053f2e50f Mon Sep 17 00:00:00 2001 | 1 | From 1593e5a9839b7cade95e9f55ba3cff66d64d0e84 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 17 Jan 2017 17:11:04 +0530 | 3 | Date: Tue, 17 Jan 2017 17:11:04 +0530 |
| 4 | Subject: [PATCH 17/53] [Patch,microblaze]: Inline Expansion of fsqrt builtin. | 4 | Subject: [PATCH 17/53] [Patch,microblaze]: Inline Expansion of fsqrt builtin. |
| @@ -29,7 +29,7 @@ Signed-off-by:Ajit Agarwal ajitkum@xilinx.com | |||
| 29 | 1 file changed, 14 insertions(+) | 29 | 1 file changed, 14 insertions(+) |
| 30 | 30 | ||
| 31 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 31 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 32 | index f85d8fcac8a..254221482af 100644 | 32 | index 52308cce0cb..0e5ef4d7649 100644 |
| 33 | --- a/gcc/config/microblaze/microblaze.md | 33 | --- a/gcc/config/microblaze/microblaze.md |
| 34 | +++ b/gcc/config/microblaze/microblaze.md | 34 | +++ b/gcc/config/microblaze/microblaze.md |
| 35 | @@ -451,6 +451,20 @@ | 35 | @@ -451,6 +451,20 @@ |
| @@ -54,5 +54,5 @@ index f85d8fcac8a..254221482af 100644 | |||
| 54 | [(set (match_operand:SI 0 "register_operand" "=d") | 54 | [(set (match_operand:SI 0 "register_operand" "=d") |
| 55 | (fix:SI (match_operand:SF 1 "register_operand" "d")))] | 55 | (fix:SI (match_operand:SF 1 "register_operand" "d")))] |
| 56 | -- | 56 | -- |
| 57 | 2.17.1 | 57 | 2.37.1 (Apple Git-137.1) |
| 58 | 58 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0018-PATCH-microblaze.md-Improve-adddi3-and-subdi3-insn-d.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0018-PATCH-microblaze.md-Improve-adddi3-and-subdi3-insn-d.patch index 4aa51cc9..831b8f22 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0018-PATCH-microblaze.md-Improve-adddi3-and-subdi3-insn-d.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0018-PATCH-microblaze.md-Improve-adddi3-and-subdi3-insn-d.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 9eb2e41cedc278eb16e20383b6c8caad2ce22138 Mon Sep 17 00:00:00 2001 | 1 | From 9002b7d4c295bef95a3fc28c05f86dde5087dde1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 17 Jan 2017 18:07:24 +0530 | 3 | Date: Tue, 17 Jan 2017 18:07:24 +0530 |
| 4 | Subject: [PATCH 18/53] [PATCH] microblaze.md: Improve 'adddi3' and 'subdi3' | 4 | Subject: [PATCH 18/53] [PATCH] microblaze.md: Improve 'adddi3' and 'subdi3' |
| @@ -23,7 +23,7 @@ Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> | |||
| 23 | 1 file changed, 6 insertions(+), 7 deletions(-) | 23 | 1 file changed, 6 insertions(+), 7 deletions(-) |
| 24 | 24 | ||
| 25 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 25 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 26 | index 254221482af..d86a049355a 100644 | 26 | index 0e5ef4d7649..effb9774c32 100644 |
| 27 | --- a/gcc/config/microblaze/microblaze.md | 27 | --- a/gcc/config/microblaze/microblaze.md |
| 28 | +++ b/gcc/config/microblaze/microblaze.md | 28 | +++ b/gcc/config/microblaze/microblaze.md |
| 29 | @@ -502,17 +502,16 @@ | 29 | @@ -502,17 +502,16 @@ |
| @@ -59,5 +59,5 @@ index 254221482af..d86a049355a 100644 | |||
| 59 | "rsub\t%L0,%L2,%L1\;rsubc\t%M0,%M2,%M1" | 59 | "rsub\t%L0,%L2,%L1\;rsubc\t%M0,%M2,%M1" |
| 60 | [(set_attr "type" "darith") | 60 | [(set_attr "type" "darith") |
| 61 | -- | 61 | -- |
| 62 | 2.17.1 | 62 | 2.37.1 (Apple Git-137.1) |
| 63 | 63 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0019-Patch-microblaze-Update-ashlsi3-movsf-patterns.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0019-Patch-microblaze-Update-ashlsi3-movsf-patterns.patch index b4182f5e..ab3fa535 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0019-Patch-microblaze-Update-ashlsi3-movsf-patterns.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0019-Patch-microblaze-Update-ashlsi3-movsf-patterns.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From abef7f4d2ad2869c37c4fb2666b52ed700384877 Mon Sep 17 00:00:00 2001 | 1 | From ef94a8b2110f5a3becefb00c1f7c0c3adac6fcac Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 17 Jan 2017 18:18:41 +0530 | 3 | Date: Tue, 17 Jan 2017 18:18:41 +0530 |
| 4 | Subject: [PATCH 19/53] [Patch, microblaze]: Update ashlsi3 & movsf patterns | 4 | Subject: [PATCH 19/53] [Patch, microblaze]: Update ashlsi3 & movsf patterns |
| @@ -21,16 +21,19 @@ ChangeLog: | |||
| 21 | *microblaze.cc (print_operand): | 21 | *microblaze.cc (print_operand): |
| 22 | updated the 'F' case to use "unsinged int" instead | 22 | updated the 'F' case to use "unsinged int" instead |
| 23 | of HOST_WIDE_INT_PRINT_HEX | 23 | of HOST_WIDE_INT_PRINT_HEX |
| 24 | |||
| 25 | Conflicts: | ||
| 26 | gcc/config/microblaze/microblaze.c | ||
| 24 | --- | 27 | --- |
| 25 | gcc/config/microblaze/microblaze.cc | 2 +- | 28 | gcc/config/microblaze/microblaze.cc | 2 +- |
| 26 | gcc/config/microblaze/microblaze.md | 10 ++++++++-- | 29 | gcc/config/microblaze/microblaze.md | 10 ++++++++-- |
| 27 | 2 files changed, 9 insertions(+), 3 deletions(-) | 30 | 2 files changed, 9 insertions(+), 3 deletions(-) |
| 28 | 31 | ||
| 29 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc | 32 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 30 | index 62630aab64e..16f3120e415 100644 | 33 | index 4b0621db168..c23061c4e4a 100644 |
| 31 | --- a/gcc/config/microblaze/microblaze.cc | 34 | --- a/gcc/config/microblaze/microblaze.cc |
| 32 | +++ b/gcc/config/microblaze/microblaze.cc | 35 | +++ b/gcc/config/microblaze/microblaze.cc |
| 33 | @@ -2468,7 +2468,7 @@ print_operand (FILE * file, rtx op, int letter) | 36 | @@ -2469,7 +2469,7 @@ print_operand (FILE * file, rtx op, int letter) |
| 34 | unsigned long value_long; | 37 | unsigned long value_long; |
| 35 | REAL_VALUE_TO_TARGET_SINGLE (*CONST_DOUBLE_REAL_VALUE (op), | 38 | REAL_VALUE_TO_TARGET_SINGLE (*CONST_DOUBLE_REAL_VALUE (op), |
| 36 | value_long); | 39 | value_long); |
| @@ -40,7 +43,7 @@ index 62630aab64e..16f3120e415 100644 | |||
| 40 | else | 43 | else |
| 41 | { | 44 | { |
| 42 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 45 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 43 | index d86a049355a..986c78f592a 100644 | 46 | index effb9774c32..a4d7ea29219 100644 |
| 44 | --- a/gcc/config/microblaze/microblaze.md | 47 | --- a/gcc/config/microblaze/microblaze.md |
| 45 | +++ b/gcc/config/microblaze/microblaze.md | 48 | +++ b/gcc/config/microblaze/microblaze.md |
| 46 | @@ -1368,7 +1368,10 @@ | 49 | @@ -1368,7 +1368,10 @@ |
| @@ -68,5 +71,5 @@ index d86a049355a..986c78f592a 100644 | |||
| 68 | [(set_attr "type" "no_delay_arith") | 71 | [(set_attr "type" "no_delay_arith") |
| 69 | (set_attr "mode" "SI") | 72 | (set_attr "mode" "SI") |
| 70 | -- | 73 | -- |
| 71 | 2.17.1 | 74 | 2.37.1 (Apple Git-137.1) |
| 72 | 75 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0020-Patch-microblaze-8-stage-pipeline-for-microblaze.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0020-Patch-microblaze-8-stage-pipeline-for-microblaze.patch index a2292e02..67eb0893 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0020-Patch-microblaze-8-stage-pipeline-for-microblaze.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0020-Patch-microblaze-8-stage-pipeline-for-microblaze.patch | |||
| @@ -1,43 +1,42 @@ | |||
| 1 | From 39d009f82d0fc316b633a717f173b6195316c8ed Mon Sep 17 00:00:00 2001 | 1 | From 65574bdca9006fda7654e33a0081eeecfcd9976b Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Mon, 9 Nov 2020 19:54:39 +0530 | 3 | Date: Mon, 12 Sep 2022 21:05:51 +0530 |
| 4 | Subject: [PATCH 20/53] [Patch, microblaze]: 8-stage pipeline for microblaze | 4 | Subject: [PATCH 20/53] [Patch, microblaze]: 8-stage pipeline for microblaze |
| 5 | 5 | This patch adds the support for the 8-stage pipeline. The new 8-stage | |
| 6 | This patch adds the support for the 8-stage pipeline. The new 8-stage | 6 | pipeline reduces the latencies of float & integer division drastically |
| 7 | pipeline reduces the latencies of float & integer division drastically | ||
| 8 | 7 | ||
| 9 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> | 8 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> |
| 10 | --- | 9 | --- |
| 11 | gcc/config/microblaze/microblaze.cc | 11 ++++ | 10 | gcc/config/microblaze/microblaze.cc | 11 ++++ |
| 12 | gcc/config/microblaze/microblaze.h | 3 +- | 11 | gcc/config/microblaze/microblaze.h | 3 +- |
| 13 | gcc/config/microblaze/microblaze.md | 79 +++++++++++++++++++++++++++- | 12 | gcc/config/microblaze/microblaze.md | 79 +++++++++++++++++++++++++++- |
| 14 | gcc/config/microblaze/microblaze.opt | 4 ++ | 13 | gcc/config/microblaze/microblaze.opt | 4 ++ |
| 15 | 4 files changed, 94 insertions(+), 3 deletions(-) | 14 | 4 files changed, 94 insertions(+), 3 deletions(-) |
| 16 | 15 | ||
| 17 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc | 16 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 18 | index 16f3120e415..c730faa9814 100644 | 17 | index c23061c4e4a..bd394c411b8 100644 |
| 19 | --- a/gcc/config/microblaze/microblaze.cc | 18 | --- a/gcc/config/microblaze/microblaze.cc |
| 20 | +++ b/gcc/config/microblaze/microblaze.cc | 19 | +++ b/gcc/config/microblaze/microblaze.cc |
| 21 | @@ -1840,6 +1840,17 @@ microblaze_option_override (void) | 20 | @@ -1841,6 +1841,17 @@ microblaze_option_override (void) |
| 22 | "%<-mcpu=v8.30.a%>"); | 21 | "%<-mcpu=v8.30.a%>"); |
| 23 | TARGET_REORDER = 0; | 22 | TARGET_REORDER = 0; |
| 24 | } | 23 | } |
| 25 | + ver = microblaze_version_to_int("v10.0"); | 24 | + ver = microblaze_version_to_int("v10.0"); |
| 26 | + if (ver < 0) | 25 | + if (ver < 0) |
| 27 | + { | 26 | + { |
| 28 | + if (TARGET_AREA_OPTIMIZED_2) | 27 | + if (TARGET_AREA_OPTIMIZED_2) |
| 29 | + warning (0, "-mxl-frequency can be used only with -mcpu=v10.0 or greater"); | 28 | + warning (0, "-mxl-frequency can be used only with -mcpu=v10.0 or greater"); |
| 30 | + } | 29 | + } |
| 31 | + else | 30 | + else |
| 32 | + { | 31 | + { |
| 33 | + if (TARGET_AREA_OPTIMIZED_2) | 32 | + if (TARGET_AREA_OPTIMIZED_2) |
| 34 | + microblaze_pipe = MICROBLAZE_PIPE_8; | 33 | + microblaze_pipe = MICROBLAZE_PIPE_8; |
| 35 | + } | 34 | + } |
| 36 | 35 | ||
| 37 | if (TARGET_MULTIPLY_HIGH && TARGET_SOFT_MUL) | 36 | if (TARGET_MULTIPLY_HIGH && TARGET_SOFT_MUL) |
| 38 | error ("%<-mxl-multiply-high%> requires %<-mno-xl-soft-mul%>"); | 37 | error ("%<-mxl-multiply-high%> requires %<-mno-xl-soft-mul%>"); |
| 39 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h | 38 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h |
| 40 | index e32ce7dbb51..21560ec1618 100644 | 39 | index cd544f2030e..640ae6ea9a3 100644 |
| 41 | --- a/gcc/config/microblaze/microblaze.h | 40 | --- a/gcc/config/microblaze/microblaze.h |
| 42 | +++ b/gcc/config/microblaze/microblaze.h | 41 | +++ b/gcc/config/microblaze/microblaze.h |
| 43 | @@ -27,7 +27,8 @@ | 42 | @@ -27,7 +27,8 @@ |
| @@ -51,7 +50,7 @@ index e32ce7dbb51..21560ec1618 100644 | |||
| 51 | 50 | ||
| 52 | #define MICROBLAZE_MASK_NO_UNSAFE_DELAY 0x00000001 | 51 | #define MICROBLAZE_MASK_NO_UNSAFE_DELAY 0x00000001 |
| 53 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 52 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 54 | index 986c78f592a..ce72acb9ee0 100644 | 53 | index a4d7ea29219..9e9dfb1ccb0 100644 |
| 55 | --- a/gcc/config/microblaze/microblaze.md | 54 | --- a/gcc/config/microblaze/microblaze.md |
| 56 | +++ b/gcc/config/microblaze/microblaze.md | 55 | +++ b/gcc/config/microblaze/microblaze.md |
| 57 | @@ -35,6 +35,7 @@ | 56 | @@ -35,6 +35,7 @@ |
| @@ -162,7 +161,7 @@ index 986c78f592a..ce72acb9ee0 100644 | |||
| 162 | (set_attr "length" "4")]) | 161 | (set_attr "length" "4")]) |
| 163 | 162 | ||
| 164 | diff --git a/gcc/config/microblaze/microblaze.opt b/gcc/config/microblaze/microblaze.opt | 163 | diff --git a/gcc/config/microblaze/microblaze.opt b/gcc/config/microblaze/microblaze.opt |
| 165 | index 8dfb134b315..2a72566372b 100644 | 164 | index 9f47e67cf2a..cc009363f87 100644 |
| 166 | --- a/gcc/config/microblaze/microblaze.opt | 165 | --- a/gcc/config/microblaze/microblaze.opt |
| 167 | +++ b/gcc/config/microblaze/microblaze.opt | 166 | +++ b/gcc/config/microblaze/microblaze.opt |
| 168 | @@ -133,3 +133,7 @@ Data referenced by offset from start of text instead of GOT (with -fPIC/-fPIE). | 167 | @@ -133,3 +133,7 @@ Data referenced by offset from start of text instead of GOT (with -fPIC/-fPIE). |
| @@ -174,5 +173,5 @@ index 8dfb134b315..2a72566372b 100644 | |||
| 174 | +Target Mask(AREA_OPTIMIZED_2) | 173 | +Target Mask(AREA_OPTIMIZED_2) |
| 175 | +Use 8 stage pipeline (frequency optimization) | 174 | +Use 8 stage pipeline (frequency optimization) |
| 176 | -- | 175 | -- |
| 177 | 2.17.1 | 176 | 2.37.1 (Apple Git-137.1) |
| 178 | 177 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0021-Patch-microblaze-Correct-the-const-high-double-immed.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0021-PATCH-21-53-Patch-microblaze-Correct-the-const-high-.patch index d4e43afc..96fe4f73 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0021-Patch-microblaze-Correct-the-const-high-double-immed.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0021-PATCH-21-53-Patch-microblaze-Correct-the-const-high-.patch | |||
| @@ -1,25 +1,25 @@ | |||
| 1 | From 1c93b2ce88766f74f1f6d7e0235ffff0b7ca7b81 Mon Sep 17 00:00:00 2001 | 1 | From 1d56bfb436b008422b4a7d4d4e3180667130c840 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Mon, 9 Nov 2020 21:14:54 +0530 | 3 | Date: Tue, 13 Sep 2022 11:49:11 +0530 |
| 4 | Subject: [PATCH 21/53] [Patch, microblaze]: Correct the const high double | 4 | Subject: [PATCH 21/53] [PATCH 21/53] [Patch, microblaze]: Correct the const |
| 5 | immediate value with this patch the loading of the DI mode immediate values | 5 | high double immediate value with this patch the loading of the DI mode |
| 6 | will be using REAL_VALUE_FROM_CONST_DOUBLE and REAL_VALUE_TO_TARGET_DOUBLE | 6 | immediate values will be using REAL_VALUE_FROM_CONST_DOUBLE and |
| 7 | functions, as CONST_DOUBLE_HIGH was returning the sign extension value even | 7 | REAL_VALUE_TO_TARGET_DOUBLE functions, as CONST_DOUBLE_HIGH was returning |
| 8 | of the unsigned long long constants also | 8 | the sign extension value even of the unsigned long long constants also |
| 9 | 9 | ||
| 10 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> | 10 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> |
| 11 | Ajit Agarwal <ajitkum@xilinx.com> | 11 | Ajit Agarwal <ajitkum@xilinx.com> |
| 12 | --- | 12 | --- |
| 13 | gcc/config/microblaze/microblaze.cc | 6 ++++-- | 13 | gcc/config/microblaze/microblaze.cc | 6 ++++-- |
| 14 | gcc/testsuite/gcc.target/microblaze/others/long.c | 9 +++++++++ | 14 | gcc/testsuite/gcc.target/microblaze/others/long.c | 9 +++++++++ |
| 15 | 2 files changed, 13 insertions(+), 2 deletions(-) | 15 | 2 files changed, 13 insertions(+), 2 deletions(-) |
| 16 | create mode 100644 gcc/testsuite/gcc.target/microblaze/others/long.c | 16 | create mode 100644 gcc/testsuite/gcc.target/microblaze/others/long.c |
| 17 | 17 | ||
| 18 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc | 18 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 19 | index c730faa9814..3b1e992fa28 100644 | 19 | index bd394c411b8..7c648cda1b2 100644 |
| 20 | --- a/gcc/config/microblaze/microblaze.cc | 20 | --- a/gcc/config/microblaze/microblaze.cc |
| 21 | +++ b/gcc/config/microblaze/microblaze.cc | 21 | +++ b/gcc/config/microblaze/microblaze.cc |
| 22 | @@ -2452,14 +2452,16 @@ print_operand (FILE * file, rtx op, int letter) | 22 | @@ -2453,14 +2453,16 @@ print_operand (FILE * file, rtx op, int letter) |
| 23 | else if (letter == 'h' || letter == 'j') | 23 | else if (letter == 'h' || letter == 'j') |
| 24 | { | 24 | { |
| 25 | long val[2]; | 25 | long val[2]; |
| @@ -54,5 +54,5 @@ index 00000000000..b6b55d5ad65 | |||
| 54 | +/* { dg-final { scan-assembler "addik\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r0,0x00000000" } } */ | 54 | +/* { dg-final { scan-assembler "addik\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r0,0x00000000" } } */ |
| 55 | +/* { dg-final { scan-assembler "addik\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r0,0xf0000000" } } */ | 55 | +/* { dg-final { scan-assembler "addik\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r0,0xf0000000" } } */ |
| 56 | -- | 56 | -- |
| 57 | 2.17.1 | 57 | 2.37.1 (Apple Git-137.1) |
| 58 | 58 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0022-Fix-microblaze-Fix-internal-compiler-error-with-msma.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0022-Fix-microblaze-Fix-internal-compiler-error-with-msma.patch index 91208c24..332db5d3 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0022-Fix-microblaze-Fix-internal-compiler-error-with-msma.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0022-Fix-microblaze-Fix-internal-compiler-error-with-msma.patch | |||
| @@ -1,28 +1,23 @@ | |||
| 1 | From 808c5fecf0eab33e4cb66fb5170b9bf114dbc320 Mon Sep 17 00:00:00 2001 | 1 | From cd60ea1bd88ac47856ac66266a0771478ac73bad Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Wed, 18 Jan 2017 11:49:58 +0530 | 3 | Date: Tue, 13 Sep 2022 11:58:14 +0530 |
| 4 | Subject: [PATCH 22/53] [Fix, microblaze]: Fix internal compiler error with | 4 | Subject: [PATCH 22/53] [Fix, microblaze]: Fix internal compiler error with |
| 5 | msmall-divides This patch will fix the internal error | 5 | msmall-divides This patch will fix the internal error |
| 6 | microblaze_expand_divide function which comes because of rtx PLUS where the | 6 | microblaze_expand_divide function which come of rtx PLUS where the |
| 7 | mem_rtx is of type SI and the operand is of type QImode. This patch modifies | 7 | mem_rtx is of type SI and the operand is of type QImode. This patch |
| 8 | the mem_rtx as QImode and Plus as QImode to fix the error. | 8 | modifies the mem_rtx as QImode and Plus as QImode to fix the error. |
| 9 | 9 | ||
| 10 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> | 10 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> |
| 11 | Ajit Agarwal <ajitkum@xilinx.com> | 11 | Ajit Agarwal <ajitkum@xilinx.com> |
| 12 | ChangeLog: | ||
| 13 | 2016-02-23 Nagaraju Mekala <nmekala@xilix.com> | ||
| 14 | Ajit Agarwal <ajitkum@xilinx.com> | ||
| 15 | |||
| 16 | *microblaze.cc (microblaze_expand_divide): Update | ||
| 17 | --- | 12 | --- |
| 18 | gcc/config/microblaze/microblaze.cc | 2 +- | 13 | gcc/config/microblaze/microblaze.cc | 2 +- |
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 20 | 15 | ||
| 21 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc | 16 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 22 | index 3b1e992fa28..94aaeaa3a67 100644 | 17 | index 7c648cda1b2..907c0afa9b8 100644 |
| 23 | --- a/gcc/config/microblaze/microblaze.cc | 18 | --- a/gcc/config/microblaze/microblaze.cc |
| 24 | +++ b/gcc/config/microblaze/microblaze.cc | 19 | +++ b/gcc/config/microblaze/microblaze.cc |
| 25 | @@ -3767,7 +3767,7 @@ microblaze_expand_divide (rtx operands[]) | 20 | @@ -3768,7 +3768,7 @@ microblaze_expand_divide (rtx operands[]) |
| 26 | emit_insn (gen_ashlsi3_bshift (regt1, operands[1], GEN_INT(4))); | 21 | emit_insn (gen_ashlsi3_bshift (regt1, operands[1], GEN_INT(4))); |
| 27 | emit_insn (gen_addsi3 (regt1, regt1, operands[2])); | 22 | emit_insn (gen_addsi3 (regt1, regt1, operands[2])); |
| 28 | mem_rtx = gen_rtx_MEM (QImode, | 23 | mem_rtx = gen_rtx_MEM (QImode, |
| @@ -32,5 +27,5 @@ index 3b1e992fa28..94aaeaa3a67 100644 | |||
| 32 | insn = emit_insn (gen_zero_extendqisi2(operands[0],mem_rtx)); | 27 | insn = emit_insn (gen_zero_extendqisi2(operands[0],mem_rtx)); |
| 33 | jump = emit_jump_insn_after (gen_jump (div_end_label), insn); | 28 | jump = emit_jump_insn_after (gen_jump (div_end_label), insn); |
| 34 | -- | 29 | -- |
| 35 | 2.17.1 | 30 | 2.37.1 (Apple Git-137.1) |
| 36 | 31 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch index cc50426e..47e13fa6 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch | |||
| @@ -1,36 +1,28 @@ | |||
| 1 | From e6f5b2ba1c03ac3d0521291beb64d64a125e1481 Mon Sep 17 00:00:00 2001 | 1 | From b98cddb206ce84994425ede4b116365977768e37 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Wed, 18 Jan 2017 12:03:39 +0530 | 3 | Date: Tue, 13 Sep 2022 12:03:08 +0530 |
| 4 | Subject: [PATCH 23/53] [patch,microblaze]: Fix the calculation of high word in | 4 | Subject: [PATCH 23/53] [patch,microblaze]: Fix the calculation of high word in |
| 5 | a long long 6. .4-bit | 5 | a long long 64-bit |
| 6 | 6 | ||
| 7 | This patch will change the calculation of high word in a long long 64-bit. | 7 | This patch will change the calculation of high word in a long long 64-bit. |
| 8 | Earlier to this patch the high word of long long word (0xF0000000ULL) is | 8 | Earlier to this patch the high word of long long word (0xF0000000ULL) is |
| 9 | coming to be 0xFFFFFFFF and low word is 0xF0000000. Instead the high word | 9 | coming to be 0xFFFFFFFF and low word is 0xF0000000. Instead the high word |
| 10 | should be 0x00000000 and the low word should be 0xF0000000. This patch | 10 | should be 0x00000000 and the low word should be 0xF0000000. This patch |
| 11 | removes the condition of checking high word = 0 & low word < 0. | 11 | removes the condition of checking high word = 0 & low word < 0. |
| 12 | This check is not required for the correctness of calculating 32-bit high | 12 | This check is not required for the correctness of calculating 32-bit high |
| 13 | and low words in a 64-bit long long. | 13 | and low words in a 64-bit long long. |
| 14 | 14 | ||
| 15 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> | 15 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> |
| 16 | Ajit Agarwal <ajitkum@xilinx.com> | 16 | Ajit Agarwal <ajitkum@xilinx.com> |
| 17 | |||
| 18 | ChangeLog: | ||
| 19 | 2016-03-01 Nagaraju Mekala <nmekala@xilix.com> | ||
| 20 | Ajit Agarwal <ajitkum@xilinx.com> | ||
| 21 | |||
| 22 | *config/microblaze/microblaze.cc (print_operand): Remove the condition of checking | ||
| 23 | high word = 0 & low word < 0. | ||
| 24 | *testsuite/gcc.target/microblaze/others/long.c: Add -O0 option. | ||
| 25 | --- | 17 | --- |
| 26 | gcc/config/microblaze/microblaze.cc | 3 --- | 18 | gcc/config/microblaze/microblaze.cc | 3 --- |
| 27 | 1 file changed, 3 deletions(-) | 19 | 1 file changed, 3 deletions(-) |
| 28 | 20 | ||
| 29 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc | 21 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 30 | index 94aaeaa3a67..84e17fc4520 100644 | 22 | index 907c0afa9b8..f75eaff4b49 100644 |
| 31 | --- a/gcc/config/microblaze/microblaze.cc | 23 | --- a/gcc/config/microblaze/microblaze.cc |
| 32 | +++ b/gcc/config/microblaze/microblaze.cc | 24 | +++ b/gcc/config/microblaze/microblaze.cc |
| 33 | @@ -2468,9 +2468,6 @@ print_operand (FILE * file, rtx op, int letter) | 25 | @@ -2469,9 +2469,6 @@ print_operand (FILE * file, rtx op, int letter) |
| 34 | { | 26 | { |
| 35 | val[0] = (INTVAL (op) & 0xffffffff00000000LL) >> 32; | 27 | val[0] = (INTVAL (op) & 0xffffffff00000000LL) >> 32; |
| 36 | val[1] = INTVAL (op) & 0x00000000ffffffffLL; | 28 | val[1] = INTVAL (op) & 0x00000000ffffffffLL; |
| @@ -41,5 +33,5 @@ index 94aaeaa3a67..84e17fc4520 100644 | |||
| 41 | fprintf (file, "0x%8.8lx", (letter == 'h') ? val[0] : val[1]); | 33 | fprintf (file, "0x%8.8lx", (letter == 'h') ? val[0] : val[1]); |
| 42 | } | 34 | } |
| 43 | -- | 35 | -- |
| 44 | 2.17.1 | 36 | 2.37.1 (Apple Git-137.1) |
| 45 | 37 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0024-Patch-MicroBlaze-this-patch-has.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0024-Patch-MicroBlaze-this-patch-has-1.Fixed-the-bug-in.patch index 52fde1e7..8ed5ae83 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0024-Patch-MicroBlaze-this-patch-has.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0024-Patch-MicroBlaze-this-patch-has-1.Fixed-the-bug-in.patch | |||
| @@ -1,19 +1,20 @@ | |||
| 1 | From 5b81fec66287856abfe7def27e245fe73e60fe5e Mon Sep 17 00:00:00 2001 | 1 | From 89269c9b8d2047ebbc13e98c45e94746edc63de6 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 26 Oct 2021 21:11:21 +0530 | 3 | Date: Tue, 13 Sep 2022 12:23:54 +0530 |
| 4 | Subject: [PATCH 24/53] [Patch,MicroBlaze] : this patch has 1.Fixed the bug in | 4 | Subject: [PATCH 24/53] [Patch,MicroBlaze] : this patch has 1.Fixed the bug in |
| 5 | version calculation. 2.Add new bitfield instructions. | 5 | version calculation. 2.Add new bitfield instructions. |
| 6 | 6 | ||
| 7 | Signed-off-by :Mahesh Bodapati <mbodapat@xilinx.com> | ||
| 7 | --- | 8 | --- |
| 8 | gcc/config/microblaze/microblaze.cc | 154 ++++++++++++++-------------- | 9 | gcc/config/microblaze/microblaze.cc | 154 ++++++++++++++-------------- |
| 9 | gcc/config/microblaze/microblaze.h | 2 + | 10 | gcc/config/microblaze/microblaze.h | 2 + |
| 10 | gcc/config/microblaze/microblaze.md | 69 +++++++++++++ | 11 | gcc/config/microblaze/microblaze.md | 69 +++++++++++++ |
| 11 | 3 files changed, 147 insertions(+), 78 deletions(-) | 12 | 3 files changed, 147 insertions(+), 78 deletions(-) |
| 12 | 13 | ||
| 13 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | 14 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 14 | =================================================================== | 15 | index f75eaff4b49..3abfc834ff2 100644 |
| 15 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.cc | 16 | --- a/gcc/config/microblaze/microblaze.cc |
| 16 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.cc | 17 | +++ b/gcc/config/microblaze/microblaze.cc |
| 17 | @@ -165,6 +165,9 @@ int microblaze_no_unsafe_delay; | 18 | @@ -165,6 +165,9 @@ int microblaze_no_unsafe_delay; |
| 18 | /* Set to one if the targeted core has the CLZ insn. */ | 19 | /* Set to one if the targeted core has the CLZ insn. */ |
| 19 | int microblaze_has_clz = 0; | 20 | int microblaze_has_clz = 0; |
| @@ -88,7 +89,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 88 | /* Return truth value if a CONST_DOUBLE is ok to be a legitimate constant. */ | 89 | /* Return truth value if a CONST_DOUBLE is ok to be a legitimate constant. */ |
| 89 | static bool | 90 | static bool |
| 90 | microblaze_const_double_ok (rtx op, machine_mode mode) | 91 | microblaze_const_double_ok (rtx op, machine_mode mode) |
| 91 | @@ -1339,8 +1399,7 @@ microblaze_rtx_costs (rtx x, machine_mod | 92 | @@ -1339,8 +1399,7 @@ microblaze_rtx_costs (rtx x, machine_mode mode, int outer_code ATTRIBUTE_UNUSED, |
| 92 | { | 93 | { |
| 93 | if (TARGET_BARREL_SHIFT) | 94 | if (TARGET_BARREL_SHIFT) |
| 94 | { | 95 | { |
| @@ -98,7 +99,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 98 | *total = COSTS_N_INSNS (1); | 99 | *total = COSTS_N_INSNS (1); |
| 99 | else | 100 | else |
| 100 | *total = COSTS_N_INSNS (2); | 101 | *total = COSTS_N_INSNS (2); |
| 101 | @@ -1401,8 +1460,7 @@ microblaze_rtx_costs (rtx x, machine_mod | 102 | @@ -1401,8 +1460,7 @@ microblaze_rtx_costs (rtx x, machine_mode mode, int outer_code ATTRIBUTE_UNUSED, |
| 102 | } | 103 | } |
| 103 | else if (!TARGET_SOFT_MUL) | 104 | else if (!TARGET_SOFT_MUL) |
| 104 | { | 105 | { |
| @@ -108,7 +109,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 108 | *total = COSTS_N_INSNS (1); | 109 | *total = COSTS_N_INSNS (1); |
| 109 | else | 110 | else |
| 110 | *total = COSTS_N_INSNS (3); | 111 | *total = COSTS_N_INSNS (3); |
| 111 | @@ -1675,72 +1733,13 @@ function_arg_partial_bytes (cumulative_a | 112 | @@ -1675,72 +1733,13 @@ function_arg_partial_bytes (cumulative_args_t cum_v, |
| 112 | return 0; | 113 | return 0; |
| 113 | } | 114 | } |
| 114 | 115 | ||
| @@ -259,20 +260,20 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 259 | + ver = ver_int - microblaze_version_to_int("v10.0"); | 260 | + ver = ver_int - microblaze_version_to_int("v10.0"); |
| 260 | if (ver < 0) | 261 | if (ver < 0) |
| 261 | { | 262 | { |
| 262 | if (TARGET_AREA_OPTIMIZED_2) | 263 | if (TARGET_AREA_OPTIMIZED_2) |
| 263 | @@ -1851,6 +1847,8 @@ microblaze_option_override (void) | 264 | @@ -1851,6 +1847,8 @@ microblaze_option_override (void) |
| 264 | { | 265 | { |
| 265 | if (TARGET_AREA_OPTIMIZED_2) | 266 | if (TARGET_AREA_OPTIMIZED_2) |
| 266 | microblaze_pipe = MICROBLAZE_PIPE_8; | 267 | microblaze_pipe = MICROBLAZE_PIPE_8; |
| 267 | + if (TARGET_BARREL_SHIFT) | 268 | + if (TARGET_BARREL_SHIFT) |
| 268 | + microblaze_has_bitfield = 1; | 269 | + microblaze_has_bitfield = 1; |
| 269 | } | 270 | } |
| 270 | 271 | ||
| 271 | if (TARGET_MULTIPLY_HIGH && TARGET_SOFT_MUL) | 272 | if (TARGET_MULTIPLY_HIGH && TARGET_SOFT_MUL) |
| 272 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | 273 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h |
| 273 | =================================================================== | 274 | index 640ae6ea9a3..67015058198 100644 |
| 274 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.h | 275 | --- a/gcc/config/microblaze/microblaze.h |
| 275 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.h | 276 | +++ b/gcc/config/microblaze/microblaze.h |
| 276 | @@ -44,6 +44,7 @@ extern int microblaze_dbx_regno[]; | 277 | @@ -44,6 +44,7 @@ extern int microblaze_dbx_regno[]; |
| 277 | 278 | ||
| 278 | extern int microblaze_no_unsafe_delay; | 279 | extern int microblaze_no_unsafe_delay; |
| @@ -281,7 +282,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | |||
| 281 | extern enum pipeline_type microblaze_pipe; | 282 | extern enum pipeline_type microblaze_pipe; |
| 282 | 283 | ||
| 283 | #define OBJECT_FORMAT_ELF | 284 | #define OBJECT_FORMAT_ELF |
| 284 | @@ -63,6 +64,7 @@ extern enum pipeline_type microblaze_pip | 285 | @@ -63,6 +64,7 @@ extern enum pipeline_type microblaze_pipe; |
| 285 | /* Do we have CLZ? */ | 286 | /* Do we have CLZ? */ |
| 286 | #define TARGET_HAS_CLZ (TARGET_PATTERN_COMPARE && microblaze_has_clz) | 287 | #define TARGET_HAS_CLZ (TARGET_PATTERN_COMPARE && microblaze_has_clz) |
| 287 | 288 | ||
| @@ -289,10 +290,10 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | |||
| 289 | /* The default is to support PIC. */ | 290 | /* The default is to support PIC. */ |
| 290 | #define TARGET_SUPPORTS_PIC 1 | 291 | #define TARGET_SUPPORTS_PIC 1 |
| 291 | 292 | ||
| 292 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.md | 293 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 293 | =================================================================== | 294 | index 9e9dfb1ccb0..dede4d068d3 100644 |
| 294 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.md | 295 | --- a/gcc/config/microblaze/microblaze.md |
| 295 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.md | 296 | +++ b/gcc/config/microblaze/microblaze.md |
| 296 | @@ -2491,4 +2491,73 @@ | 297 | @@ -2491,4 +2491,73 @@ |
| 297 | DONE; | 298 | DONE; |
| 298 | }") | 299 | }") |
| @@ -367,3 +368,6 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.md | |||
| 367 | + (set_attr "length" "4")]) | 368 | + (set_attr "length" "4")]) |
| 368 | + | 369 | + |
| 369 | (include "sync.md") | 370 | (include "sync.md") |
| 371 | -- | ||
| 372 | 2.37.1 (Apple Git-137.1) | ||
| 373 | |||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0025-Fixing-the-issue-with-the-builtin_alloc.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0025-Fixing-the-issue-with-the-builtin_alloc.patch index f8c438c2..109e0686 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0025-Fixing-the-issue-with-the-builtin_alloc.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0025-Fixing-the-issue-with-the-builtin_alloc.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 18f970e2dd79c67cefeeaa6634f959be19d1a6ad Mon Sep 17 00:00:00 2001 | 1 | From 101f47dedd82fc09bcefd5db986e6d6b0a1761ad Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
| 3 | Date: Thu, 23 Feb 2017 17:09:04 +0530 | 3 | Date: Thu, 23 Feb 2017 17:09:04 +0530 |
| 4 | Subject: [PATCH 25/53] Fixing the issue with the builtin_alloc. register r18 | 4 | Subject: [PATCH 25/53] Fixing the issue with the builtin_alloc. register r18 |
| @@ -11,7 +11,7 @@ signed-off-by:nagaraju mekala <nmekala@xilinx.com> | |||
| 11 | 1 file changed, 4 insertions(+), 4 deletions(-) | 11 | 1 file changed, 4 insertions(+), 4 deletions(-) |
| 12 | 12 | ||
| 13 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 13 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 14 | index fc3326b2314..0b3dbdd4a70 100644 | 14 | index dede4d068d3..c6d8a87e9d1 100644 |
| 15 | --- a/gcc/config/microblaze/microblaze.md | 15 | --- a/gcc/config/microblaze/microblaze.md |
| 16 | +++ b/gcc/config/microblaze/microblaze.md | 16 | +++ b/gcc/config/microblaze/microblaze.md |
| 17 | @@ -2075,10 +2075,10 @@ | 17 | @@ -2075,10 +2075,10 @@ |
| @@ -40,5 +40,5 @@ index fc3326b2314..0b3dbdd4a70 100644 | |||
| 40 | } | 40 | } |
| 41 | ) | 41 | ) |
| 42 | -- | 42 | -- |
| 43 | 2.17.1 | 43 | 2.37.1 (Apple Git-137.1) |
| 44 | 44 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0026-Patch-Microblaze-Removed-fsqrt-generation-for-double.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0026-Patch-Microblaze-Removed-fsqrt-generation-for-double.patch index e895ddbd..4f101b96 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0026-Patch-Microblaze-Removed-fsqrt-generation-for-double.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0026-Patch-Microblaze-Removed-fsqrt-generation-for-double.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 45f4d3915c2194183a87ca54bd9ecf68eeccba4d Mon Sep 17 00:00:00 2001 | 1 | From b3e51ca34dc4048445b178253051ad4bbdfc5ec4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Mon, 4 Jun 2018 10:10:18 +0530 | 3 | Date: Mon, 4 Jun 2018 10:10:18 +0530 |
| 4 | Subject: [PATCH 26/53] [Patch,Microblaze] : Removed fsqrt generation for | 4 | Subject: [PATCH 26/53] [Patch,Microblaze] : Removed fsqrt generation for |
| @@ -9,7 +9,7 @@ Subject: [PATCH 26/53] [Patch,Microblaze] : Removed fsqrt generation for | |||
| 9 | 1 file changed, 14 deletions(-) | 9 | 1 file changed, 14 deletions(-) |
| 10 | 10 | ||
| 11 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 11 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 12 | index 0b3dbdd4a70..9dd12d1011b 100644 | 12 | index c6d8a87e9d1..f23a85c7ac7 100644 |
| 13 | --- a/gcc/config/microblaze/microblaze.md | 13 | --- a/gcc/config/microblaze/microblaze.md |
| 14 | +++ b/gcc/config/microblaze/microblaze.md | 14 | +++ b/gcc/config/microblaze/microblaze.md |
| 15 | @@ -526,20 +526,6 @@ | 15 | @@ -526,20 +526,6 @@ |
| @@ -34,5 +34,5 @@ index 0b3dbdd4a70..9dd12d1011b 100644 | |||
| 34 | [(set (match_operand:SI 0 "register_operand" "=d") | 34 | [(set (match_operand:SI 0 "register_operand" "=d") |
| 35 | (fix:SI (match_operand:SF 1 "register_operand" "d")))] | 35 | (fix:SI (match_operand:SF 1 "register_operand" "d")))] |
| 36 | -- | 36 | -- |
| 37 | 2.17.1 | 37 | 2.37.1 (Apple Git-137.1) |
| 38 | 38 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0027-Patch-MicroBlaze-Intial-commit-of-64-bit-Microblaze.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0027-Patch-MicroBlaze-Intial-commit-of-64-bit-Microblaze.patch index aa7a2b0a..2e7106d6 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0027-Patch-MicroBlaze-Intial-commit-of-64-bit-Microblaze.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0027-Patch-MicroBlaze-Intial-commit-of-64-bit-Microblaze.patch | |||
| @@ -1,24 +1,24 @@ | |||
| 1 | From dba8e9e148812774d94f584cdff7b6e0293081b5 Mon Sep 17 00:00:00 2001 | 1 | From cf9ab9693d02212e1a49465e55d759a01acc507a Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 10 Nov 2020 12:52:54 +0530 | 3 | Date: Tue, 13 Sep 2022 13:56:52 +0530 |
| 4 | Subject: [PATCH 27/53] [Patch,MicroBlaze]: Intial commit of 64-bit Microblaze | 4 | Subject: [PATCH 27/53] [Patch,MicroBlaze]: Intial commit of 64-bit Microblaze |
| 5 | 5 | ||
| 6 | Conflicts: | 6 | Conflicts: |
| 7 | gcc/config/microblaze/microblaze.md | 7 | gcc/config/microblaze/microblaze.md |
| 8 | --- | 8 | --- |
| 9 | gcc/config/microblaze/constraints.md | 6 + | 9 | gcc/config/microblaze/constraints.md | 6 + |
| 10 | gcc/config/microblaze/microblaze-protos.h | 1 + | 10 | gcc/config/microblaze/microblaze-protos.h | 1 + |
| 11 | gcc/config/microblaze/microblaze.cc | 109 +++++-- | 11 | gcc/config/microblaze/microblaze.cc | 109 +++++-- |
| 12 | gcc/config/microblaze/microblaze.h | 4 +- | 12 | gcc/config/microblaze/microblaze.h | 4 +- |
| 13 | gcc/config/microblaze/microblaze.md | 352 +++++++++++++++++++++- | 13 | gcc/config/microblaze/microblaze.md | 352 +++++++++++++++++++++- |
| 14 | gcc/config/microblaze/microblaze.opt | 7 +- | 14 | gcc/config/microblaze/microblaze.opt | 7 +- |
| 15 | gcc/config/microblaze/t-microblaze | 7 +- | 15 | gcc/config/microblaze/t-microblaze | 7 +- |
| 16 | 7 files changed, 456 insertions(+), 30 deletions(-) | 16 | 7 files changed, 456 insertions(+), 30 deletions(-) |
| 17 | 17 | ||
| 18 | Index: gcc-12.1.0/gcc/config/microblaze/constraints.md | 18 | diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md |
| 19 | =================================================================== | 19 | index a8934d305ee..2133650147e 100644 |
| 20 | --- gcc-12.1.0.orig/gcc/config/microblaze/constraints.md | 20 | --- a/gcc/config/microblaze/constraints.md |
| 21 | +++ gcc-12.1.0/gcc/config/microblaze/constraints.md | 21 | +++ b/gcc/config/microblaze/constraints.md |
| 22 | @@ -52,6 +52,12 @@ | 22 | @@ -52,6 +52,12 @@ |
| 23 | (and (match_code "const_int") | 23 | (and (match_code "const_int") |
| 24 | (match_test "ival > 0 && ival < 0x10000"))) | 24 | (match_test "ival > 0 && ival < 0x10000"))) |
| @@ -32,11 +32,11 @@ Index: gcc-12.1.0/gcc/config/microblaze/constraints.md | |||
| 32 | ;; Define floating point constraints | 32 | ;; Define floating point constraints |
| 33 | 33 | ||
| 34 | (define_constraint "G" | 34 | (define_constraint "G" |
| 35 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze-protos.h | 35 | diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h |
| 36 | =================================================================== | 36 | index 848cd509003..7f575c2adec 100644 |
| 37 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze-protos.h | 37 | --- a/gcc/config/microblaze/microblaze-protos.h |
| 38 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze-protos.h | 38 | +++ b/gcc/config/microblaze/microblaze-protos.h |
| 39 | @@ -36,6 +36,7 @@ extern void microblaze_expand_divide (rt | 39 | @@ -36,6 +36,7 @@ extern void microblaze_expand_divide (rtx *); |
| 40 | extern void microblaze_expand_conditional_branch (enum machine_mode, rtx *); | 40 | extern void microblaze_expand_conditional_branch (enum machine_mode, rtx *); |
| 41 | extern void microblaze_expand_conditional_branch_reg (machine_mode, rtx *); | 41 | extern void microblaze_expand_conditional_branch_reg (machine_mode, rtx *); |
| 42 | extern void microblaze_expand_conditional_branch_sf (rtx *); | 42 | extern void microblaze_expand_conditional_branch_sf (rtx *); |
| @@ -44,11 +44,11 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze-protos.h | |||
| 44 | extern int microblaze_can_use_return_insn (void); | 44 | extern int microblaze_can_use_return_insn (void); |
| 45 | extern void print_operand (FILE *, rtx, int); | 45 | extern void print_operand (FILE *, rtx, int); |
| 46 | extern void print_operand_address (FILE *, rtx); | 46 | extern void print_operand_address (FILE *, rtx); |
| 47 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | 47 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 48 | =================================================================== | 48 | index 3abfc834ff2..1ac889041b8 100644 |
| 49 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.cc | 49 | --- a/gcc/config/microblaze/microblaze.cc |
| 50 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.cc | 50 | +++ b/gcc/config/microblaze/microblaze.cc |
| 51 | @@ -3433,11 +3433,11 @@ microblaze_expand_move (machine_mode mod | 51 | @@ -3433,11 +3433,11 @@ microblaze_expand_move (machine_mode mode, rtx operands[]) |
| 52 | op0 = operands[0]; | 52 | op0 = operands[0]; |
| 53 | op1 = operands[1]; | 53 | op1 = operands[1]; |
| 54 | 54 | ||
| @@ -63,7 +63,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 63 | emit_move_insn (op0, temp); | 63 | emit_move_insn (op0, temp); |
| 64 | return true; | 64 | return true; |
| 65 | } | 65 | } |
| 66 | @@ -3502,12 +3502,12 @@ microblaze_expand_move (machine_mode mod | 66 | @@ -3502,12 +3502,12 @@ microblaze_expand_move (machine_mode mode, rtx operands[]) |
| 67 | && (flag_pic == 2 || microblaze_tls_symbol_p (p0) | 67 | && (flag_pic == 2 || microblaze_tls_symbol_p (p0) |
| 68 | || !SMALL_INT (p1))))) | 68 | || !SMALL_INT (p1))))) |
| 69 | { | 69 | { |
| @@ -78,7 +78,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 78 | return true; | 78 | return true; |
| 79 | } | 79 | } |
| 80 | } | 80 | } |
| 81 | @@ -3638,7 +3638,7 @@ microblaze_expand_conditional_branch (ma | 81 | @@ -3638,7 +3638,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[]) |
| 82 | rtx cmp_op0 = operands[1]; | 82 | rtx cmp_op0 = operands[1]; |
| 83 | rtx cmp_op1 = operands[2]; | 83 | rtx cmp_op1 = operands[2]; |
| 84 | rtx label1 = operands[3]; | 84 | rtx label1 = operands[3]; |
| @@ -87,7 +87,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 87 | rtx condition; | 87 | rtx condition; |
| 88 | 88 | ||
| 89 | gcc_assert ((GET_CODE (cmp_op0) == REG) || (GET_CODE (cmp_op0) == SUBREG)); | 89 | gcc_assert ((GET_CODE (cmp_op0) == REG) || (GET_CODE (cmp_op0) == SUBREG)); |
| 90 | @@ -3647,23 +3647,36 @@ microblaze_expand_conditional_branch (ma | 90 | @@ -3647,23 +3647,36 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[]) |
| 91 | if (cmp_op1 == const0_rtx) | 91 | if (cmp_op1 == const0_rtx) |
| 92 | { | 92 | { |
| 93 | comp_reg = cmp_op0; | 93 | comp_reg = cmp_op0; |
| @@ -130,7 +130,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 130 | } | 130 | } |
| 131 | } | 131 | } |
| 132 | 132 | ||
| 133 | @@ -3674,7 +3687,7 @@ microblaze_expand_conditional_branch_reg | 133 | @@ -3674,7 +3687,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) |
| 134 | rtx cmp_op0 = operands[1]; | 134 | rtx cmp_op0 = operands[1]; |
| 135 | rtx cmp_op1 = operands[2]; | 135 | rtx cmp_op1 = operands[2]; |
| 136 | rtx label1 = operands[3]; | 136 | rtx label1 = operands[3]; |
| @@ -139,7 +139,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 139 | rtx condition; | 139 | rtx condition; |
| 140 | 140 | ||
| 141 | gcc_assert ((GET_CODE (cmp_op0) == REG) | 141 | gcc_assert ((GET_CODE (cmp_op0) == REG) |
| 142 | @@ -3685,30 +3698,63 @@ microblaze_expand_conditional_branch_reg | 142 | @@ -3685,30 +3698,63 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) |
| 143 | { | 143 | { |
| 144 | comp_reg = cmp_op0; | 144 | comp_reg = cmp_op0; |
| 145 | condition = gen_rtx_fmt_ee (signed_condition (code), | 145 | condition = gen_rtx_fmt_ee (signed_condition (code), |
| @@ -215,7 +215,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 215 | } | 215 | } |
| 216 | } | 216 | } |
| 217 | 217 | ||
| 218 | @@ -3725,6 +3771,19 @@ microblaze_expand_conditional_branch_sf | 218 | @@ -3725,6 +3771,19 @@ microblaze_expand_conditional_branch_sf (rtx operands[]) |
| 219 | emit_jump_insn (gen_condjump (condition, operands[3])); | 219 | emit_jump_insn (gen_condjump (condition, operands[3])); |
| 220 | } | 220 | } |
| 221 | 221 | ||
| @@ -235,11 +235,11 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 235 | /* Implement TARGET_FRAME_POINTER_REQUIRED. */ | 235 | /* Implement TARGET_FRAME_POINTER_REQUIRED. */ |
| 236 | 236 | ||
| 237 | static bool | 237 | static bool |
| 238 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | 238 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h |
| 239 | =================================================================== | 239 | index 67015058198..885abc6e5a1 100644 |
| 240 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.h | 240 | --- a/gcc/config/microblaze/microblaze.h |
| 241 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.h | 241 | +++ b/gcc/config/microblaze/microblaze.h |
| 242 | @@ -102,6 +102,7 @@ extern enum pipeline_type microblaze_pip | 242 | @@ -102,6 +102,7 @@ extern enum pipeline_type microblaze_pipe; |
| 243 | #define ASM_SPEC "\ | 243 | #define ASM_SPEC "\ |
| 244 | %(target_asm_spec) \ | 244 | %(target_asm_spec) \ |
| 245 | %{mbig-endian:-EB} \ | 245 | %{mbig-endian:-EB} \ |
| @@ -247,7 +247,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | |||
| 247 | %{mlittle-endian:-EL}" | 247 | %{mlittle-endian:-EL}" |
| 248 | 248 | ||
| 249 | /* Extra switches sometimes passed to the linker. */ | 249 | /* Extra switches sometimes passed to the linker. */ |
| 250 | @@ -110,6 +111,7 @@ extern enum pipeline_type microblaze_pip | 250 | @@ -110,6 +111,7 @@ extern enum pipeline_type microblaze_pipe; |
| 251 | #define LINK_SPEC "%{shared:-shared} -N -relax \ | 251 | #define LINK_SPEC "%{shared:-shared} -N -relax \ |
| 252 | %{mbig-endian:-EB --oformat=elf32-microblaze} \ | 252 | %{mbig-endian:-EB --oformat=elf32-microblaze} \ |
| 253 | %{mlittle-endian:-EL --oformat=elf32-microblazeel} \ | 253 | %{mlittle-endian:-EL --oformat=elf32-microblazeel} \ |
| @@ -255,7 +255,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | |||
| 255 | %{Zxl-mode-xmdstub:-defsym _TEXT_START_ADDR=0x800} \ | 255 | %{Zxl-mode-xmdstub:-defsym _TEXT_START_ADDR=0x800} \ |
| 256 | %{mxl-mode-xmdstub:-defsym _TEXT_START_ADDR=0x800} \ | 256 | %{mxl-mode-xmdstub:-defsym _TEXT_START_ADDR=0x800} \ |
| 257 | %{mxl-gp-opt:%{G*}} %{!mxl-gp-opt: -G 0} \ | 257 | %{mxl-gp-opt:%{G*}} %{!mxl-gp-opt: -G 0} \ |
| 258 | @@ -217,7 +219,7 @@ extern enum pipeline_type microblaze_pip | 258 | @@ -217,7 +219,7 @@ extern enum pipeline_type microblaze_pipe; |
| 259 | #define MIN_UNITS_PER_WORD 4 | 259 | #define MIN_UNITS_PER_WORD 4 |
| 260 | #define INT_TYPE_SIZE 32 | 260 | #define INT_TYPE_SIZE 32 |
| 261 | #define SHORT_TYPE_SIZE 16 | 261 | #define SHORT_TYPE_SIZE 16 |
| @@ -264,10 +264,10 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | |||
| 264 | #define LONG_LONG_TYPE_SIZE 64 | 264 | #define LONG_LONG_TYPE_SIZE 64 |
| 265 | #define FLOAT_TYPE_SIZE 32 | 265 | #define FLOAT_TYPE_SIZE 32 |
| 266 | #define DOUBLE_TYPE_SIZE 64 | 266 | #define DOUBLE_TYPE_SIZE 64 |
| 267 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.md | 267 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 268 | =================================================================== | 268 | index f23a85c7ac7..40711fe224b 100644 |
| 269 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.md | 269 | --- a/gcc/config/microblaze/microblaze.md |
| 270 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.md | 270 | +++ b/gcc/config/microblaze/microblaze.md |
| 271 | @@ -497,7 +497,6 @@ | 271 | @@ -497,7 +497,6 @@ |
| 272 | (set_attr "mode" "SF") | 272 | (set_attr "mode" "SF") |
| 273 | (set_attr "length" "4")]) | 273 | (set_attr "length" "4")]) |
| @@ -630,13 +630,10 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.md | |||
| 630 | ;;---------------------------------------------------------------- | 630 | ;;---------------------------------------------------------------- |
| 631 | ;; Conditional branches | 631 | ;; Conditional branches |
| 632 | ;;---------------------------------------------------------------- | 632 | ;;---------------------------------------------------------------- |
| 633 | @@ -1924,6 +2165,115 @@ | 633 | @@ -1927,6 +2168,115 @@ |
| 634 | } | 634 | (set_attr "length" "12")] |
| 635 | [(set_attr "type" "branch") | 635 | ) |
| 636 | (set_attr "mode" "none") | 636 | |
| 637 | + (set_attr "length" "12")] | ||
| 638 | +) | ||
| 639 | + | ||
| 640 | + | 637 | + |
| 641 | +(define_expand "cbranchdi4" | 638 | +(define_expand "cbranchdi4" |
| 642 | + [(set (pc) | 639 | + [(set (pc) |
| @@ -743,13 +740,16 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.md | |||
| 743 | + } | 740 | + } |
| 744 | + [(set_attr "type" "branch") | 741 | + [(set_attr "type" "branch") |
| 745 | + (set_attr "mode" "none") | 742 | + (set_attr "mode" "none") |
| 746 | (set_attr "length" "12")] | 743 | + (set_attr "length" "12")] |
| 747 | ) | 744 | +) |
| 748 | 745 | + | |
| 749 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.opt | 746 | ;;---------------------------------------------------------------- |
| 750 | =================================================================== | 747 | ;; Unconditional branches |
| 751 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.opt | 748 | ;;---------------------------------------------------------------- |
| 752 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.opt | 749 | diff --git a/gcc/config/microblaze/microblaze.opt b/gcc/config/microblaze/microblaze.opt |
| 750 | index cc009363f87..10910dbb83f 100644 | ||
| 751 | --- a/gcc/config/microblaze/microblaze.opt | ||
| 752 | +++ b/gcc/config/microblaze/microblaze.opt | ||
| 753 | @@ -136,4 +136,9 @@ Target | 753 | @@ -136,4 +136,9 @@ Target |
| 754 | 754 | ||
| 755 | mxl-frequency | 755 | mxl-frequency |
| @@ -761,10 +761,10 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.opt | |||
| 761 | +Target Mask(MB_64) | 761 | +Target Mask(MB_64) |
| 762 | +MicroBlaze 64-bit mode. | 762 | +MicroBlaze 64-bit mode. |
| 763 | + | 763 | + |
| 764 | Index: gcc-12.1.0/gcc/config/microblaze/t-microblaze | 764 | diff --git a/gcc/config/microblaze/t-microblaze b/gcc/config/microblaze/t-microblaze |
| 765 | =================================================================== | 765 | index 7e2fc5dcef8..4c25cfe15e7 100644 |
| 766 | --- gcc-12.1.0.orig/gcc/config/microblaze/t-microblaze | 766 | --- a/gcc/config/microblaze/t-microblaze |
| 767 | +++ gcc-12.1.0/gcc/config/microblaze/t-microblaze | 767 | +++ b/gcc/config/microblaze/t-microblaze |
| 768 | @@ -1,8 +1,11 @@ | 768 | @@ -1,8 +1,11 @@ |
| 769 | -MULTILIB_OPTIONS = mxl-barrel-shift mno-xl-soft-mul mxl-multiply-high mlittle-endian | 769 | -MULTILIB_OPTIONS = mxl-barrel-shift mno-xl-soft-mul mxl-multiply-high mlittle-endian |
| 770 | -MULTILIB_DIRNAMES = bs m mh le | 770 | -MULTILIB_DIRNAMES = bs m mh le |
| @@ -779,3 +779,6 @@ Index: gcc-12.1.0/gcc/config/microblaze/t-microblaze | |||
| 779 | 779 | ||
| 780 | # Extra files | 780 | # Extra files |
| 781 | microblaze-c.o: $(srcdir)/config/microblaze/microblaze-c.cc \ | 781 | microblaze-c.o: $(srcdir)/config/microblaze/microblaze-c.cc \ |
| 782 | -- | ||
| 783 | 2.37.1 (Apple Git-137.1) | ||
| 784 | |||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0028-Intial-commit-for-64bit-MB-sources.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0028-Intial-commit-for-64bit-MB-sources.patch index fad1752f..1ffa79cb 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0028-Intial-commit-for-64bit-MB-sources.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0028-Intial-commit-for-64bit-MB-sources.patch | |||
| @@ -1,13 +1,13 @@ | |||
| 1 | From 211cfd6be4b47e1fecf95d1becb713772fd71091 Mon Sep 17 00:00:00 2001 | 1 | From da40b160857d0b6a56b6f6c9c81d61dabb5255db Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Fri, 27 Jul 2018 15:23:41 +0530 | 3 | Date: Tue, 13 Sep 2022 14:38:48 +0530 |
| 4 | Subject: [PATCH 28/53] Intial commit for 64bit-MB sources. Need to cleanup the | 4 | Subject: [PATCH 28/53] Intial commit for 64bit-MB sources. Need to cleanup |
| 5 | code later. | 5 | the code later. |
| 6 | 6 | ||
| 7 | --- | 7 | --- |
| 8 | gcc/config/microblaze/constraints.md | 2 +- | 8 | gcc/config/microblaze/constraints.md | 2 +- |
| 9 | gcc/config/microblaze/microblaze-c.cc | 6 + | 9 | gcc/config/microblaze/microblaze-c.cc | 6 + |
| 10 | gcc/config/microblaze/microblaze.cc | 218 ++++++--- | 10 | gcc/config/microblaze/microblaze.cc | 216 ++++++--- |
| 11 | gcc/config/microblaze/microblaze.h | 63 ++- | 11 | gcc/config/microblaze/microblaze.h | 63 ++- |
| 12 | gcc/config/microblaze/microblaze.md | 605 ++++++++++++++++++------ | 12 | gcc/config/microblaze/microblaze.md | 605 ++++++++++++++++++------ |
| 13 | gcc/config/microblaze/t-microblaze | 3 +- | 13 | gcc/config/microblaze/t-microblaze | 3 +- |
| @@ -20,7 +20,7 @@ Subject: [PATCH 28/53] Intial commit for 64bit-MB sources. Need to cleanup the | |||
| 20 | libgcc/config/microblaze/t-microblaze | 11 +- | 20 | libgcc/config/microblaze/t-microblaze | 11 +- |
| 21 | libgcc/config/microblaze/udivdi3.S | 107 +++++ | 21 | libgcc/config/microblaze/udivdi3.S | 107 +++++ |
| 22 | libgcc/config/microblaze/umoddi3.S | 110 +++++ | 22 | libgcc/config/microblaze/umoddi3.S | 110 +++++ |
| 23 | 15 files changed, 1230 insertions(+), 233 deletions(-) | 23 | 15 files changed, 1229 insertions(+), 232 deletions(-) |
| 24 | create mode 100644 libgcc/config/microblaze/divdi3.S | 24 | create mode 100644 libgcc/config/microblaze/divdi3.S |
| 25 | create mode 100644 libgcc/config/microblaze/divdi3_table.c | 25 | create mode 100644 libgcc/config/microblaze/divdi3_table.c |
| 26 | create mode 100644 libgcc/config/microblaze/moddi3.S | 26 | create mode 100644 libgcc/config/microblaze/moddi3.S |
| @@ -28,10 +28,10 @@ Subject: [PATCH 28/53] Intial commit for 64bit-MB sources. Need to cleanup the | |||
| 28 | create mode 100644 libgcc/config/microblaze/udivdi3.S | 28 | create mode 100644 libgcc/config/microblaze/udivdi3.S |
| 29 | create mode 100644 libgcc/config/microblaze/umoddi3.S | 29 | create mode 100644 libgcc/config/microblaze/umoddi3.S |
| 30 | 30 | ||
| 31 | Index: gcc-12.1.0/gcc/config/microblaze/constraints.md | 31 | diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md |
| 32 | =================================================================== | 32 | index 2133650147e..0ced155340d 100644 |
| 33 | --- gcc-12.1.0.orig/gcc/config/microblaze/constraints.md | 33 | --- a/gcc/config/microblaze/constraints.md |
| 34 | +++ gcc-12.1.0/gcc/config/microblaze/constraints.md | 34 | +++ b/gcc/config/microblaze/constraints.md |
| 35 | @@ -55,7 +55,7 @@ | 35 | @@ -55,7 +55,7 @@ |
| 36 | (define_constraint "K" | 36 | (define_constraint "K" |
| 37 | "A constant in the range 0xffffff8000000000L to 0x0000007fffffffffL (inclusive)." | 37 | "A constant in the range 0xffffff8000000000L to 0x0000007fffffffffL (inclusive)." |
| @@ -41,11 +41,11 @@ Index: gcc-12.1.0/gcc/config/microblaze/constraints.md | |||
| 41 | 41 | ||
| 42 | 42 | ||
| 43 | ;; Define floating point constraints | 43 | ;; Define floating point constraints |
| 44 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze-c.cc | 44 | diff --git a/gcc/config/microblaze/microblaze-c.cc b/gcc/config/microblaze/microblaze-c.cc |
| 45 | =================================================================== | 45 | index caabe99b993..ef8d2430565 100644 |
| 46 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze-c.cc | 46 | --- a/gcc/config/microblaze/microblaze-c.cc |
| 47 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze-c.cc | 47 | +++ b/gcc/config/microblaze/microblaze-c.cc |
| 48 | @@ -100,4 +100,10 @@ microblaze_cpp_define (cpp_reader *pfile | 48 | @@ -100,4 +100,10 @@ microblaze_cpp_define (cpp_reader *pfile) |
| 49 | builtin_define ("HAVE_HW_FPU_SQRT"); | 49 | builtin_define ("HAVE_HW_FPU_SQRT"); |
| 50 | builtin_define ("__HAVE_HW_FPU_SQRT__"); | 50 | builtin_define ("__HAVE_HW_FPU_SQRT__"); |
| 51 | } | 51 | } |
| @@ -56,11 +56,11 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze-c.cc | |||
| 56 | + builtin_define ("__MICROBLAZE64__"); | 56 | + builtin_define ("__MICROBLAZE64__"); |
| 57 | + } | 57 | + } |
| 58 | } | 58 | } |
| 59 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | 59 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 60 | =================================================================== | 60 | index 1ac889041b8..9d3628c6816 100644 |
| 61 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.cc | 61 | --- a/gcc/config/microblaze/microblaze.cc |
| 62 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.cc | 62 | +++ b/gcc/config/microblaze/microblaze.cc |
| 63 | @@ -384,10 +384,10 @@ simple_memory_operand (rtx op, machine_m | 63 | @@ -384,10 +384,10 @@ simple_memory_operand (rtx op, machine_mode mode ATTRIBUTE_UNUSED) |
| 64 | { | 64 | { |
| 65 | return 1; | 65 | return 1; |
| 66 | } | 66 | } |
| @@ -73,7 +73,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 73 | else | 73 | else |
| 74 | return 0; | 74 | return 0; |
| 75 | 75 | ||
| 76 | @@ -435,7 +435,7 @@ double_memory_operand (rtx op, machine_m | 76 | @@ -435,7 +435,7 @@ double_memory_operand (rtx op, machine_mode mode) |
| 77 | return 1; | 77 | return 1; |
| 78 | 78 | ||
| 79 | return memory_address_p ((GET_MODE_CLASS (mode) == MODE_INT | 79 | return memory_address_p ((GET_MODE_CLASS (mode) == MODE_INT |
| @@ -82,7 +82,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 82 | plus_constant (Pmode, addr, 4)); | 82 | plus_constant (Pmode, addr, 4)); |
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | @@ -682,7 +682,7 @@ microblaze_legitimize_tls_address(rtx x, | 85 | @@ -682,7 +682,7 @@ microblaze_legitimize_tls_address(rtx x, rtx reg) |
| 86 | /* Load the addend. */ | 86 | /* Load the addend. */ |
| 87 | addend = gen_rtx_UNSPEC (Pmode, gen_rtvec (2, x, GEN_INT (TLS_DTPREL)), | 87 | addend = gen_rtx_UNSPEC (Pmode, gen_rtvec (2, x, GEN_INT (TLS_DTPREL)), |
| 88 | UNSPEC_TLS); | 88 | UNSPEC_TLS); |
| @@ -91,7 +91,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 91 | dest = gen_rtx_PLUS (Pmode, dest, addend); | 91 | dest = gen_rtx_PLUS (Pmode, dest, addend); |
| 92 | break; | 92 | break; |
| 93 | 93 | ||
| 94 | @@ -700,7 +700,7 @@ microblaze_classify_unspec (struct micro | 94 | @@ -700,7 +700,7 @@ microblaze_classify_unspec (struct microblaze_address_info *info, rtx x) |
| 95 | 95 | ||
| 96 | if (XINT (x, 1) == UNSPEC_GOTOFF) | 96 | if (XINT (x, 1) == UNSPEC_GOTOFF) |
| 97 | { | 97 | { |
| @@ -100,7 +100,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 100 | info->type = ADDRESS_GOTOFF; | 100 | info->type = ADDRESS_GOTOFF; |
| 101 | } | 101 | } |
| 102 | else if (XINT (x, 1) == UNSPEC_PLT) | 102 | else if (XINT (x, 1) == UNSPEC_PLT) |
| 103 | @@ -1303,8 +1303,16 @@ microblaze_block_move_loop (rtx dest, rt | 103 | @@ -1303,8 +1303,16 @@ microblaze_block_move_loop (rtx dest, rtx src, HOST_WIDE_INT length) |
| 104 | emit_move_insn (dest_reg, plus_constant (Pmode, dest_reg, MAX_MOVE_BYTES)); | 104 | emit_move_insn (dest_reg, plus_constant (Pmode, dest_reg, MAX_MOVE_BYTES)); |
| 105 | 105 | ||
| 106 | /* Emit the test & branch. */ | 106 | /* Emit the test & branch. */ |
| @@ -108,17 +108,17 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 108 | + | 108 | + |
| 109 | + if (TARGET_MB_64) { | 109 | + if (TARGET_MB_64) { |
| 110 | + emit_insn (gen_cbranchdi4 (gen_rtx_NE (Pmode, src_reg, final_src), | 110 | + emit_insn (gen_cbranchdi4 (gen_rtx_NE (Pmode, src_reg, final_src), |
| 111 | src_reg, final_src, label)); | 111 | + src_reg, final_src, label)); |
| 112 | + } | 112 | + } |
| 113 | + else { | 113 | + else { |
| 114 | + emit_insn (gen_cbranchsi4 (gen_rtx_NE (Pmode, src_reg, final_src), | 114 | + emit_insn (gen_cbranchsi4 (gen_rtx_NE (Pmode, src_reg, final_src), |
| 115 | + src_reg, final_src, label)); | 115 | src_reg, final_src, label)); |
| 116 | + | 116 | + |
| 117 | + } | 117 | + } |
| 118 | 118 | ||
| 119 | /* Mop up any left-over bytes. */ | 119 | /* Mop up any left-over bytes. */ |
| 120 | if (leftover) | 120 | if (leftover) |
| 121 | @@ -1634,14 +1642,20 @@ microblaze_function_arg_advance (cumulat | 121 | @@ -1634,14 +1642,20 @@ microblaze_function_arg_advance (cumulative_args_t cum_v, |
| 122 | break; | 122 | break; |
| 123 | 123 | ||
| 124 | case E_DFmode: | 124 | case E_DFmode: |
| @@ -150,7 +150,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 150 | 150 | ||
| 151 | mask |= (1L << (regno - GP_REG_FIRST)); | 151 | mask |= (1L << (regno - GP_REG_FIRST)); |
| 152 | } | 152 | } |
| 153 | @@ -2425,7 +2439,7 @@ print_operand (FILE * file, rtx op, int | 153 | @@ -2425,7 +2439,7 @@ print_operand (FILE * file, rtx op, int letter) |
| 154 | 154 | ||
| 155 | if ((letter == 'M' && !WORDS_BIG_ENDIAN) | 155 | if ((letter == 'M' && !WORDS_BIG_ENDIAN) |
| 156 | || (letter == 'L' && WORDS_BIG_ENDIAN) || letter == 'D') | 156 | || (letter == 'L' && WORDS_BIG_ENDIAN) || letter == 'D') |
| @@ -159,7 +159,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 159 | 159 | ||
| 160 | fprintf (file, "%s", reg_names[regnum]); | 160 | fprintf (file, "%s", reg_names[regnum]); |
| 161 | } | 161 | } |
| 162 | @@ -2451,6 +2465,7 @@ print_operand (FILE * file, rtx op, int | 162 | @@ -2451,6 +2465,7 @@ print_operand (FILE * file, rtx op, int letter) |
| 163 | else if (letter == 'h' || letter == 'j') | 163 | else if (letter == 'h' || letter == 'j') |
| 164 | { | 164 | { |
| 165 | long val[2]; | 165 | long val[2]; |
| @@ -167,7 +167,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 167 | long l[2]; | 167 | long l[2]; |
| 168 | if (code == CONST_DOUBLE) | 168 | if (code == CONST_DOUBLE) |
| 169 | { | 169 | { |
| 170 | @@ -2463,12 +2478,12 @@ print_operand (FILE * file, rtx op, int | 170 | @@ -2463,12 +2478,12 @@ print_operand (FILE * file, rtx op, int letter) |
| 171 | val[0] = l[WORDS_BIG_ENDIAN != 0]; | 171 | val[0] = l[WORDS_BIG_ENDIAN != 0]; |
| 172 | } | 172 | } |
| 173 | } | 173 | } |
| @@ -184,7 +184,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 184 | } | 184 | } |
| 185 | else if (code == CONST_DOUBLE) | 185 | else if (code == CONST_DOUBLE) |
| 186 | { | 186 | { |
| 187 | @@ -2662,7 +2677,10 @@ microblaze_asm_constructor (rtx symbol A | 187 | @@ -2662,7 +2677,10 @@ microblaze_asm_constructor (rtx symbol ATTRIBUTE_UNUSED, int priority) |
| 188 | 188 | ||
| 189 | switch_to_section (get_section (section, 0, NULL)); | 189 | switch_to_section (get_section (section, 0, NULL)); |
| 190 | assemble_align (POINTER_SIZE); | 190 | assemble_align (POINTER_SIZE); |
| @@ -196,7 +196,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 196 | output_addr_const (asm_out_file, symbol); | 196 | output_addr_const (asm_out_file, symbol); |
| 197 | fputs ("\n", asm_out_file); | 197 | fputs ("\n", asm_out_file); |
| 198 | } | 198 | } |
| 199 | @@ -2685,7 +2703,10 @@ microblaze_asm_destructor (rtx symbol, i | 199 | @@ -2685,7 +2703,10 @@ microblaze_asm_destructor (rtx symbol, int priority) |
| 200 | 200 | ||
| 201 | switch_to_section (get_section (section, 0, NULL)); | 201 | switch_to_section (get_section (section, 0, NULL)); |
| 202 | assemble_align (POINTER_SIZE); | 202 | assemble_align (POINTER_SIZE); |
| @@ -271,7 +271,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | /* Done saving and restoring */ | 273 | /* Done saving and restoring */ |
| 274 | @@ -2898,7 +2919,10 @@ microblaze_elf_asm_cdtor (rtx symbol, in | 274 | @@ -2898,7 +2919,10 @@ microblaze_elf_asm_cdtor (rtx symbol, int priority, bool is_ctor) |
| 275 | 275 | ||
| 276 | switch_to_section (s); | 276 | switch_to_section (s); |
| 277 | assemble_align (POINTER_SIZE); | 277 | assemble_align (POINTER_SIZE); |
| @@ -306,11 +306,11 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 306 | + { | 306 | + { |
| 307 | + | 307 | + |
| 308 | + insn = emit_insn (gen_subdi3 (stack_pointer_rtx, stack_pointer_rtx, | 308 | + insn = emit_insn (gen_subdi3 (stack_pointer_rtx, stack_pointer_rtx, |
| 309 | + fsiz_rtx)); | 309 | fsiz_rtx)); |
| 310 | + } | 310 | + } |
| 311 | + else { | 311 | + else { |
| 312 | + insn = emit_insn (gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx, | 312 | + insn = emit_insn (gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx, |
| 313 | fsiz_rtx)); | 313 | + fsiz_rtx)); |
| 314 | + } | 314 | + } |
| 315 | if (insn) | 315 | if (insn) |
| 316 | RTX_FRAME_RELATED_P (insn) = 1; | 316 | RTX_FRAME_RELATED_P (insn) = 1; |
| @@ -377,7 +377,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 377 | emit_jump_insn (gen_return_internal (gen_rtx_REG (Pmode, GP_REG_FIRST + | 377 | emit_jump_insn (gen_return_internal (gen_rtx_REG (Pmode, GP_REG_FIRST + |
| 378 | MB_ABI_SUB_RETURN_ADDR_REGNUM))); | 378 | MB_ABI_SUB_RETURN_ADDR_REGNUM))); |
| 379 | } | 379 | } |
| 380 | @@ -3376,9 +3418,14 @@ microblaze_asm_output_mi_thunk (FILE *fi | 380 | @@ -3376,9 +3418,14 @@ microblaze_asm_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED, |
| 381 | else | 381 | else |
| 382 | this_rtx = gen_rtx_REG (Pmode, MB_ABI_FIRST_ARG_REGNUM); | 382 | this_rtx = gen_rtx_REG (Pmode, MB_ABI_FIRST_ARG_REGNUM); |
| 383 | 383 | ||
| @@ -394,7 +394,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 394 | 394 | ||
| 395 | /* Apply the offset from the vtable, if required. */ | 395 | /* Apply the offset from the vtable, if required. */ |
| 396 | if (vcall_offset) | 396 | if (vcall_offset) |
| 397 | @@ -3391,7 +3438,10 @@ microblaze_asm_output_mi_thunk (FILE *fi | 397 | @@ -3391,7 +3438,10 @@ microblaze_asm_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED, |
| 398 | rtx loc = gen_rtx_PLUS (Pmode, temp1, vcall_offset_rtx); | 398 | rtx loc = gen_rtx_PLUS (Pmode, temp1, vcall_offset_rtx); |
| 399 | emit_move_insn (temp1, gen_rtx_MEM (Pmode, loc)); | 399 | emit_move_insn (temp1, gen_rtx_MEM (Pmode, loc)); |
| 400 | 400 | ||
| @@ -406,16 +406,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 406 | } | 406 | } |
| 407 | 407 | ||
| 408 | /* Generate a tail call to the target function. */ | 408 | /* Generate a tail call to the target function. */ |
| 409 | @@ -3567,7 +3617,7 @@ microblaze_eh_return (rtx op0) | 409 | @@ -3622,9 +3672,9 @@ microblaze_trampoline_init (rtx m_tramp, tree fndecl, rtx chain_value) |
| 410 | /* Queue an .ident string in the queue of top-level asm statements. | ||
| 411 | If the string size is below the threshold, put it into .sdata2. | ||
| 412 | If the front-end is done, we must be being called from toplev.cc. | ||
| 413 | - In that case, do nothing. */ | ||
| 414 | + In that case, do nothing. */ | ||
| 415 | void | ||
| 416 | microblaze_asm_output_ident (const char *string) | ||
| 417 | { | ||
| 418 | @@ -3622,9 +3672,9 @@ microblaze_trampoline_init (rtx m_tramp, | ||
| 419 | emit_block_move (m_tramp, assemble_trampoline_template (), | 410 | emit_block_move (m_tramp, assemble_trampoline_template (), |
| 420 | GEN_INT (6*UNITS_PER_WORD), BLOCK_OP_NORMAL); | 411 | GEN_INT (6*UNITS_PER_WORD), BLOCK_OP_NORMAL); |
| 421 | 412 | ||
| @@ -427,7 +418,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 427 | emit_move_insn (mem, fnaddr); | 418 | emit_move_insn (mem, fnaddr); |
| 428 | } | 419 | } |
| 429 | 420 | ||
| 430 | @@ -3648,7 +3698,7 @@ microblaze_expand_conditional_branch (ma | 421 | @@ -3648,7 +3698,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[]) |
| 431 | { | 422 | { |
| 432 | comp_reg = cmp_op0; | 423 | comp_reg = cmp_op0; |
| 433 | condition = gen_rtx_fmt_ee (signed_condition (code), mode, comp_reg, const0_rtx); | 424 | condition = gen_rtx_fmt_ee (signed_condition (code), mode, comp_reg, const0_rtx); |
| @@ -436,7 +427,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 436 | emit_jump_insn (gen_condjump (condition, label1)); | 427 | emit_jump_insn (gen_condjump (condition, label1)); |
| 437 | else | 428 | else |
| 438 | emit_jump_insn (gen_long_condjump (condition, label1)); | 429 | emit_jump_insn (gen_long_condjump (condition, label1)); |
| 439 | @@ -3767,7 +3817,7 @@ microblaze_expand_conditional_branch_sf | 430 | @@ -3767,7 +3817,7 @@ microblaze_expand_conditional_branch_sf (rtx operands[]) |
| 440 | rtx comp_reg = gen_reg_rtx (SImode); | 431 | rtx comp_reg = gen_reg_rtx (SImode); |
| 441 | 432 | ||
| 442 | emit_insn (gen_cstoresf4 (comp_reg, operands[0], cmp_op0, cmp_op1)); | 433 | emit_insn (gen_cstoresf4 (comp_reg, operands[0], cmp_op0, cmp_op1)); |
| @@ -445,7 +436,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 445 | emit_jump_insn (gen_condjump (condition, operands[3])); | 436 | emit_jump_insn (gen_condjump (condition, operands[3])); |
| 446 | } | 437 | } |
| 447 | 438 | ||
| 448 | @@ -3777,10 +3827,10 @@ microblaze_expand_conditional_branch_df | 439 | @@ -3777,10 +3827,10 @@ microblaze_expand_conditional_branch_df (rtx operands[]) |
| 449 | rtx condition; | 440 | rtx condition; |
| 450 | rtx cmp_op0 = XEXP (operands[0], 0); | 441 | rtx cmp_op0 = XEXP (operands[0], 0); |
| 451 | rtx cmp_op1 = XEXP (operands[0], 1); | 442 | rtx cmp_op1 = XEXP (operands[0], 1); |
| @@ -458,7 +449,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 458 | emit_jump_insn (gen_long_condjump (condition, operands[3])); | 449 | emit_jump_insn (gen_long_condjump (condition, operands[3])); |
| 459 | } | 450 | } |
| 460 | 451 | ||
| 461 | @@ -3801,8 +3851,8 @@ microblaze_expand_divide (rtx operands[] | 452 | @@ -3801,8 +3851,8 @@ microblaze_expand_divide (rtx operands[]) |
| 462 | { | 453 | { |
| 463 | /* Table lookup software divides. Works for all (nr/dr) where (0 <= nr,dr <= 15). */ | 454 | /* Table lookup software divides. Works for all (nr/dr) where (0 <= nr,dr <= 15). */ |
| 464 | 455 | ||
| @@ -469,7 +460,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 469 | rtx regqi = gen_reg_rtx (QImode); | 460 | rtx regqi = gen_reg_rtx (QImode); |
| 470 | rtx_code_label *div_label = gen_label_rtx (); | 461 | rtx_code_label *div_label = gen_label_rtx (); |
| 471 | rtx_code_label *div_end_label = gen_label_rtx (); | 462 | rtx_code_label *div_end_label = gen_label_rtx (); |
| 472 | @@ -3810,17 +3860,31 @@ microblaze_expand_divide (rtx operands[] | 463 | @@ -3810,17 +3860,31 @@ microblaze_expand_divide (rtx operands[]) |
| 473 | rtx mem_rtx; | 464 | rtx mem_rtx; |
| 474 | rtx ret; | 465 | rtx ret; |
| 475 | rtx_insn *jump, *cjump, *insn; | 466 | rtx_insn *jump, *cjump, *insn; |
| @@ -508,7 +499,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 508 | mem_rtx = gen_rtx_MEM (QImode, | 499 | mem_rtx = gen_rtx_MEM (QImode, |
| 509 | gen_rtx_PLUS (QImode, regt1, div_table_rtx)); | 500 | gen_rtx_PLUS (QImode, regt1, div_table_rtx)); |
| 510 | 501 | ||
| 511 | @@ -3967,7 +4031,7 @@ insert_wic_for_ilb_runout (rtx_insn *fir | 502 | @@ -3967,7 +4031,7 @@ insert_wic_for_ilb_runout (rtx_insn *first) |
| 512 | { | 503 | { |
| 513 | insn = | 504 | insn = |
| 514 | emit_insn_before (gen_iprefetch | 505 | emit_insn_before (gen_iprefetch |
| @@ -517,7 +508,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 517 | before_4); | 508 | before_4); |
| 518 | recog_memoized (insn); | 509 | recog_memoized (insn); |
| 519 | INSN_LOCATION (insn) = INSN_LOCATION (before_4); | 510 | INSN_LOCATION (insn) = INSN_LOCATION (before_4); |
| 520 | @@ -3977,7 +4041,27 @@ insert_wic_for_ilb_runout (rtx_insn *fir | 511 | @@ -3977,7 +4041,27 @@ insert_wic_for_ilb_runout (rtx_insn *first) |
| 521 | } | 512 | } |
| 522 | } | 513 | } |
| 523 | } | 514 | } |
| @@ -574,11 +565,11 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 574 | #undef TARGET_PROMOTE_FUNCTION_MODE | 565 | #undef TARGET_PROMOTE_FUNCTION_MODE |
| 575 | #define TARGET_PROMOTE_FUNCTION_MODE default_promote_function_mode_always_promote | 566 | #define TARGET_PROMOTE_FUNCTION_MODE default_promote_function_mode_always_promote |
| 576 | 567 | ||
| 577 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | 568 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h |
| 578 | =================================================================== | 569 | index 885abc6e5a1..5f30b8ac195 100644 |
| 579 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.h | 570 | --- a/gcc/config/microblaze/microblaze.h |
| 580 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.h | 571 | +++ b/gcc/config/microblaze/microblaze.h |
| 581 | @@ -173,7 +173,6 @@ extern enum pipeline_type microblaze_pip | 572 | @@ -173,7 +173,6 @@ extern enum pipeline_type microblaze_pipe; |
| 582 | 573 | ||
| 583 | /* Generate DWARF exception handling info. */ | 574 | /* Generate DWARF exception handling info. */ |
| 584 | #define DWARF2_UNWIND_INFO 1 | 575 | #define DWARF2_UNWIND_INFO 1 |
| @@ -586,7 +577,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | |||
| 586 | /* Don't generate .loc operations. */ | 577 | /* Don't generate .loc operations. */ |
| 587 | #define DWARF2_ASM_LINE_DEBUG_INFO 0 | 578 | #define DWARF2_ASM_LINE_DEBUG_INFO 0 |
| 588 | 579 | ||
| 589 | @@ -206,38 +205,51 @@ extern enum pipeline_type microblaze_pip | 580 | @@ -206,38 +205,51 @@ extern enum pipeline_type microblaze_pipe; |
| 590 | ((flag_pic || GLOBAL) ? DW_EH_PE_aligned : DW_EH_PE_absptr) | 581 | ((flag_pic || GLOBAL) ? DW_EH_PE_aligned : DW_EH_PE_absptr) |
| 591 | 582 | ||
| 592 | /* Use DWARF 2 debugging information by default. */ | 583 | /* Use DWARF 2 debugging information by default. */ |
| @@ -649,7 +640,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | |||
| 649 | 640 | ||
| 650 | #define DATA_ALIGNMENT(TYPE, ALIGN) \ | 641 | #define DATA_ALIGNMENT(TYPE, ALIGN) \ |
| 651 | ((((ALIGN) < BITS_PER_WORD) \ | 642 | ((((ALIGN) < BITS_PER_WORD) \ |
| 652 | @@ -253,12 +265,12 @@ extern enum pipeline_type microblaze_pip | 643 | @@ -253,12 +265,12 @@ extern enum pipeline_type microblaze_pipe; |
| 653 | #define WORD_REGISTER_OPERATIONS 1 | 644 | #define WORD_REGISTER_OPERATIONS 1 |
| 654 | 645 | ||
| 655 | #define LOAD_EXTEND_OP(MODE) ZERO_EXTEND | 646 | #define LOAD_EXTEND_OP(MODE) ZERO_EXTEND |
| @@ -666,7 +657,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | |||
| 666 | /* Standard register usage. */ | 657 | /* Standard register usage. */ |
| 667 | 658 | ||
| 668 | /* On the MicroBlaze, we have 32 integer registers */ | 659 | /* On the MicroBlaze, we have 32 integer registers */ |
| 669 | @@ -438,13 +450,16 @@ extern struct microblaze_frame_info curr | 660 | @@ -438,13 +450,16 @@ extern struct microblaze_frame_info current_frame_info; |
| 670 | #define FIRST_PARM_OFFSET(FNDECL) (UNITS_PER_WORD) | 661 | #define FIRST_PARM_OFFSET(FNDECL) (UNITS_PER_WORD) |
| 671 | 662 | ||
| 672 | #define ARG_POINTER_CFA_OFFSET(FNDECL) 0 | 663 | #define ARG_POINTER_CFA_OFFSET(FNDECL) 0 |
| @@ -684,7 +675,7 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | |||
| 684 | #define NUM_OF_ARGS 6 | 675 | #define NUM_OF_ARGS 6 |
| 685 | 676 | ||
| 686 | #define GP_RETURN (GP_REG_FIRST + MB_ABI_INT_RETURN_VAL_REGNUM) | 677 | #define GP_RETURN (GP_REG_FIRST + MB_ABI_INT_RETURN_VAL_REGNUM) |
| 687 | @@ -455,12 +470,15 @@ extern struct microblaze_frame_info curr | 678 | @@ -455,12 +470,15 @@ extern struct microblaze_frame_info current_frame_info; |
| 688 | #define MAX_ARGS_IN_REGISTERS MB_ABI_MAX_ARG_REGS | 679 | #define MAX_ARGS_IN_REGISTERS MB_ABI_MAX_ARG_REGS |
| 689 | 680 | ||
| 690 | #define LIBCALL_VALUE(MODE) \ | 681 | #define LIBCALL_VALUE(MODE) \ |
| @@ -743,10 +734,10 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | |||
| 743 | 734 | ||
| 744 | /* Default to -G 8 */ | 735 | /* Default to -G 8 */ |
| 745 | #ifndef MICROBLAZE_DEFAULT_GVALUE | 736 | #ifndef MICROBLAZE_DEFAULT_GVALUE |
| 746 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.md | 737 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 747 | =================================================================== | 738 | index 40711fe224b..c99150ff0da 100644 |
| 748 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.md | 739 | --- a/gcc/config/microblaze/microblaze.md |
| 749 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.md | 740 | +++ b/gcc/config/microblaze/microblaze.md |
| 750 | @@ -26,6 +26,7 @@ | 741 | @@ -26,6 +26,7 @@ |
| 751 | ;; Constants | 742 | ;; Constants |
| 752 | ;;---------------------------------------------------- | 743 | ;;---------------------------------------------------- |
| @@ -1789,11 +1780,11 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.md | |||
| 1789 | "" | 1780 | "" |
| 1790 | { | 1781 | { |
| 1791 | rtx target = operands[1]; | 1782 | rtx target = operands[1]; |
| 1792 | Index: gcc-12.1.0/gcc/config/microblaze/t-microblaze | 1783 | diff --git a/gcc/config/microblaze/t-microblaze b/gcc/config/microblaze/t-microblaze |
| 1793 | =================================================================== | 1784 | index 4c25cfe15e7..965132b3513 100644 |
| 1794 | --- gcc-12.1.0.orig/gcc/config/microblaze/t-microblaze | 1785 | --- a/gcc/config/microblaze/t-microblaze |
| 1795 | +++ gcc-12.1.0/gcc/config/microblaze/t-microblaze | 1786 | +++ b/gcc/config/microblaze/t-microblaze |
| 1796 | @@ -2,7 +2,8 @@ MULTILIB_OPTIONS = mxl-barrel-shift mno- | 1787 | @@ -2,7 +2,8 @@ MULTILIB_OPTIONS = mxl-barrel-shift mno-xl-soft-mul mxl-multiply-high mlittle-en |
| 1797 | MULTILIB_DIRNAMES = bs m mh le m64 | 1788 | MULTILIB_DIRNAMES = bs m mh le m64 |
| 1798 | MULTILIB_EXCEPTIONS = *mxl-barrel-shift/mxl-multiply-high mxl-multiply-high | 1789 | MULTILIB_EXCEPTIONS = *mxl-barrel-shift/mxl-multiply-high mxl-multiply-high |
| 1799 | MULTILIB_EXCEPTIONS += *mxl-barrel-shift/mxl-multiply-high/mlittle-endian | 1790 | MULTILIB_EXCEPTIONS += *mxl-barrel-shift/mxl-multiply-high/mlittle-endian |
| @@ -1803,10 +1794,10 @@ Index: gcc-12.1.0/gcc/config/microblaze/t-microblaze | |||
| 1803 | MULTILIB_EXCEPTIONS += mxl-multiply-high/mlittle-endian | 1794 | MULTILIB_EXCEPTIONS += mxl-multiply-high/mlittle-endian |
| 1804 | MULTILIB_EXCEPTIONS += mxl-multiply-high/m64 | 1795 | MULTILIB_EXCEPTIONS += mxl-multiply-high/m64 |
| 1805 | MULTILIB_EXCEPTIONS += *mxl-multiply-high/mlittle-endian/m64 | 1796 | MULTILIB_EXCEPTIONS += *mxl-multiply-high/mlittle-endian/m64 |
| 1806 | Index: gcc-12.1.0/libgcc/config/microblaze/crti.S | 1797 | diff --git a/libgcc/config/microblaze/crti.S b/libgcc/config/microblaze/crti.S |
| 1807 | =================================================================== | 1798 | index cbbe32d5f6a..ec797e1bf17 100644 |
| 1808 | --- gcc-12.1.0.orig/libgcc/config/microblaze/crti.S | 1799 | --- a/libgcc/config/microblaze/crti.S |
| 1809 | +++ gcc-12.1.0/libgcc/config/microblaze/crti.S | 1800 | +++ b/libgcc/config/microblaze/crti.S |
| 1810 | @@ -40,7 +40,7 @@ | 1801 | @@ -40,7 +40,7 @@ |
| 1811 | 1802 | ||
| 1812 | .align 2 | 1803 | .align 2 |
| @@ -1823,10 +1814,10 @@ Index: gcc-12.1.0/libgcc/config/microblaze/crti.S | |||
| 1823 | - addik r1, r1, -8 | 1814 | - addik r1, r1, -8 |
| 1824 | + addik r1, r1, -16 | 1815 | + addik r1, r1, -16 |
| 1825 | sw r15, r0, r1 | 1816 | sw r15, r0, r1 |
| 1826 | Index: gcc-12.1.0/libgcc/config/microblaze/crtn.S | 1817 | diff --git a/libgcc/config/microblaze/crtn.S b/libgcc/config/microblaze/crtn.S |
| 1827 | =================================================================== | 1818 | index cb8d8ef2bfa..977b43b9436 100644 |
| 1828 | --- gcc-12.1.0.orig/libgcc/config/microblaze/crtn.S | 1819 | --- a/libgcc/config/microblaze/crtn.S |
| 1829 | +++ gcc-12.1.0/libgcc/config/microblaze/crtn.S | 1820 | +++ b/libgcc/config/microblaze/crtn.S |
| 1830 | @@ -33,9 +33,9 @@ | 1821 | @@ -33,9 +33,9 @@ |
| 1831 | .section .init, "ax" | 1822 | .section .init, "ax" |
| 1832 | lw r15, r0, r1 | 1823 | lw r15, r0, r1 |
| @@ -1839,10 +1830,11 @@ Index: gcc-12.1.0/libgcc/config/microblaze/crtn.S | |||
| 1839 | rtsd r15, 8 | 1830 | rtsd r15, 8 |
| 1840 | - addik r1, r1, 8 | 1831 | - addik r1, r1, 8 |
| 1841 | + addik r1, r1, 16 | 1832 | + addik r1, r1, 16 |
| 1842 | Index: gcc-12.1.0/libgcc/config/microblaze/divdi3.S | 1833 | diff --git a/libgcc/config/microblaze/divdi3.S b/libgcc/config/microblaze/divdi3.S |
| 1843 | =================================================================== | 1834 | new file mode 100644 |
| 1835 | index 00000000000..d37bf5165c6 | ||
| 1844 | --- /dev/null | 1836 | --- /dev/null |
| 1845 | +++ gcc-12.1.0/libgcc/config/microblaze/divdi3.S | 1837 | +++ b/libgcc/config/microblaze/divdi3.S |
| 1846 | @@ -0,0 +1,98 @@ | 1838 | @@ -0,0 +1,98 @@ |
| 1847 | +###################################- | 1839 | +###################################- |
| 1848 | +# | 1840 | +# |
| @@ -1942,10 +1934,11 @@ Index: gcc-12.1.0/libgcc/config/microblaze/divdi3.S | |||
| 1942 | +.end __divdi3 | 1934 | +.end __divdi3 |
| 1943 | + .size __divdi3, . - __divdi3 | 1935 | + .size __divdi3, . - __divdi3 |
| 1944 | +#endif | 1936 | +#endif |
| 1945 | Index: gcc-12.1.0/libgcc/config/microblaze/divdi3_table.c | 1937 | diff --git a/libgcc/config/microblaze/divdi3_table.c b/libgcc/config/microblaze/divdi3_table.c |
| 1946 | =================================================================== | 1938 | new file mode 100644 |
| 1939 | index 00000000000..80962597ea5 | ||
| 1947 | --- /dev/null | 1940 | --- /dev/null |
| 1948 | +++ gcc-12.1.0/libgcc/config/microblaze/divdi3_table.c | 1941 | +++ b/libgcc/config/microblaze/divdi3_table.c |
| 1949 | @@ -0,0 +1,62 @@ | 1942 | @@ -0,0 +1,62 @@ |
| 1950 | +/* Table for software lookup divide for Xilinx MicroBlaze. | 1943 | +/* Table for software lookup divide for Xilinx MicroBlaze. |
| 1951 | + | 1944 | + |
| @@ -2009,10 +2002,11 @@ Index: gcc-12.1.0/libgcc/config/microblaze/divdi3_table.c | |||
| 2009 | + 15/8, 15/9, 15/10, 15/11, 15/12, 15/13, 15/14, 15/15, | 2002 | + 15/8, 15/9, 15/10, 15/11, 15/12, 15/13, 15/14, 15/15, |
| 2010 | +}; | 2003 | +}; |
| 2011 | + | 2004 | + |
| 2012 | Index: gcc-12.1.0/libgcc/config/microblaze/moddi3.S | 2005 | diff --git a/libgcc/config/microblaze/moddi3.S b/libgcc/config/microblaze/moddi3.S |
| 2013 | =================================================================== | 2006 | new file mode 100644 |
| 2007 | index 00000000000..5d3f7c03fc8 | ||
| 2014 | --- /dev/null | 2008 | --- /dev/null |
| 2015 | +++ gcc-12.1.0/libgcc/config/microblaze/moddi3.S | 2009 | +++ b/libgcc/config/microblaze/moddi3.S |
| 2016 | @@ -0,0 +1,97 @@ | 2010 | @@ -0,0 +1,97 @@ |
| 2017 | +################################### | 2011 | +################################### |
| 2018 | +# | 2012 | +# |
| @@ -2111,10 +2105,11 @@ Index: gcc-12.1.0/libgcc/config/microblaze/moddi3.S | |||
| 2111 | + .end __moddi3 | 2105 | + .end __moddi3 |
| 2112 | + .size __moddi3, . - __moddi3 | 2106 | + .size __moddi3, . - __moddi3 |
| 2113 | +#endif | 2107 | +#endif |
| 2114 | Index: gcc-12.1.0/libgcc/config/microblaze/muldi3.S | 2108 | diff --git a/libgcc/config/microblaze/muldi3.S b/libgcc/config/microblaze/muldi3.S |
| 2115 | =================================================================== | 2109 | new file mode 100644 |
| 2110 | index 00000000000..567784197d3 | ||
| 2116 | --- /dev/null | 2111 | --- /dev/null |
| 2117 | +++ gcc-12.1.0/libgcc/config/microblaze/muldi3.S | 2112 | +++ b/libgcc/config/microblaze/muldi3.S |
| 2118 | @@ -0,0 +1,73 @@ | 2113 | @@ -0,0 +1,73 @@ |
| 2119 | +/*###################################-*-asm*- | 2114 | +/*###################################-*-asm*- |
| 2120 | +# | 2115 | +# |
| @@ -2189,10 +2184,10 @@ Index: gcc-12.1.0/libgcc/config/microblaze/muldi3.S | |||
| 2189 | + .end __muldi3 | 2184 | + .end __muldi3 |
| 2190 | + .size __muldi3, . - __muldi3 | 2185 | + .size __muldi3, . - __muldi3 |
| 2191 | +#endif | 2186 | +#endif |
| 2192 | Index: gcc-12.1.0/libgcc/config/microblaze/t-microblaze | 2187 | diff --git a/libgcc/config/microblaze/t-microblaze b/libgcc/config/microblaze/t-microblaze |
| 2193 | =================================================================== | 2188 | index 8d954a49575..35021b24b7d 100644 |
| 2194 | --- gcc-12.1.0.orig/libgcc/config/microblaze/t-microblaze | 2189 | --- a/libgcc/config/microblaze/t-microblaze |
| 2195 | +++ gcc-12.1.0/libgcc/config/microblaze/t-microblaze | 2190 | +++ b/libgcc/config/microblaze/t-microblaze |
| 2196 | @@ -1,11 +1,16 @@ | 2191 | @@ -1,11 +1,16 @@ |
| 2197 | -LIB2FUNCS_EXCLUDE += _divsi3 _modsi3 _mulsi3 _udivsi3 _umodsi3 | 2192 | -LIB2FUNCS_EXCLUDE += _divsi3 _modsi3 _mulsi3 _udivsi3 _umodsi3 |
| 2198 | +LIB2FUNCS_EXCLUDE += _divsi3 _modsi3 _mulsi3 _udivsi3 _umodsi3 \ | 2193 | +LIB2FUNCS_EXCLUDE += _divsi3 _modsi3 _mulsi3 _udivsi3 _umodsi3 \ |
| @@ -2213,10 +2208,11 @@ Index: gcc-12.1.0/libgcc/config/microblaze/t-microblaze | |||
| 2213 | - $(srcdir)/config/microblaze/divsi3_table.c | 2208 | - $(srcdir)/config/microblaze/divsi3_table.c |
| 2214 | + $(srcdir)/config/microblaze/umoddi3.S \ | 2209 | + $(srcdir)/config/microblaze/umoddi3.S \ |
| 2215 | + $(srcdir)/config/microblaze/divsi3_table.c \ | 2210 | + $(srcdir)/config/microblaze/divsi3_table.c \ |
| 2216 | Index: gcc-12.1.0/libgcc/config/microblaze/udivdi3.S | 2211 | diff --git a/libgcc/config/microblaze/udivdi3.S b/libgcc/config/microblaze/udivdi3.S |
| 2217 | =================================================================== | 2212 | new file mode 100644 |
| 2213 | index 00000000000..c210fbc7128 | ||
| 2218 | --- /dev/null | 2214 | --- /dev/null |
| 2219 | +++ gcc-12.1.0/libgcc/config/microblaze/udivdi3.S | 2215 | +++ b/libgcc/config/microblaze/udivdi3.S |
| 2220 | @@ -0,0 +1,107 @@ | 2216 | @@ -0,0 +1,107 @@ |
| 2221 | +###################################- | 2217 | +###################################- |
| 2222 | +# | 2218 | +# |
| @@ -2325,10 +2321,11 @@ Index: gcc-12.1.0/libgcc/config/microblaze/udivdi3.S | |||
| 2325 | + .end __udivdi3 | 2321 | + .end __udivdi3 |
| 2326 | + .size __udivdi3, . - __udivdi3 | 2322 | + .size __udivdi3, . - __udivdi3 |
| 2327 | +#endif | 2323 | +#endif |
| 2328 | Index: gcc-12.1.0/libgcc/config/microblaze/umoddi3.S | 2324 | diff --git a/libgcc/config/microblaze/umoddi3.S b/libgcc/config/microblaze/umoddi3.S |
| 2329 | =================================================================== | 2325 | new file mode 100644 |
| 2326 | index 00000000000..7f5cd23f9a1 | ||
| 2330 | --- /dev/null | 2327 | --- /dev/null |
| 2331 | +++ gcc-12.1.0/libgcc/config/microblaze/umoddi3.S | 2328 | +++ b/libgcc/config/microblaze/umoddi3.S |
| 2332 | @@ -0,0 +1,110 @@ | 2329 | @@ -0,0 +1,110 @@ |
| 2333 | +################################### | 2330 | +################################### |
| 2334 | +# | 2331 | +# |
| @@ -2440,3 +2437,6 @@ Index: gcc-12.1.0/libgcc/config/microblaze/umoddi3.S | |||
| 2440 | +.end __umoddi3 | 2437 | +.end __umoddi3 |
| 2441 | + .size __umoddi3, . - __umoddi3 | 2438 | + .size __umoddi3, . - __umoddi3 |
| 2442 | +#endif | 2439 | +#endif |
| 2440 | -- | ||
| 2441 | 2.37.1 (Apple Git-137.1) | ||
| 2442 | |||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0029-re-arrangement-of-the-compare-branches.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0029-Patch-MicroBlaze-re-arrangement-of-the-compare-branc.patch index bc3c23fa..26cdfca2 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0029-re-arrangement-of-the-compare-branches.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0029-Patch-MicroBlaze-re-arrangement-of-the-compare-branc.patch | |||
| @@ -1,18 +1,19 @@ | |||
| 1 | From 5b31cd986c75c5f479967b8f9c1b4ac1fc322b1a Mon Sep 17 00:00:00 2001 | 1 | From 10d5e7d6cad5e7349b88b7469eb5ae20d87eb908 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Fri, 3 Aug 2018 15:41:39 +0530 | 3 | Date: Tue, 13 Sep 2022 14:45:15 +0530 |
| 4 | Subject: [PATCH 29/53] re-arrangement of the compare branches | 4 | Subject: [PATCH 29/53] [Patch,MicroBlaze] : re-arrangement of the compare |
| 5 | branches | ||
| 5 | 6 | ||
| 6 | --- | 7 | --- |
| 7 | gcc/config/microblaze/microblaze.cc | 28 ++---- | 8 | gcc/config/microblaze/microblaze.cc | 28 ++---- |
| 8 | gcc/config/microblaze/microblaze.md | 141 +++++++++++++--------------- | 9 | gcc/config/microblaze/microblaze.md | 141 +++++++++++++--------------- |
| 9 | 2 files changed, 73 insertions(+), 96 deletions(-) | 10 | 2 files changed, 73 insertions(+), 96 deletions(-) |
| 10 | 11 | ||
| 11 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc | 12 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 12 | index f59a71ac072..e33e1bc1482 100644 | 13 | index 9d3628c6816..4792e3ba370 100644 |
| 13 | --- a/gcc/config/microblaze/microblaze.cc | 14 | --- a/gcc/config/microblaze/microblaze.cc |
| 14 | +++ b/gcc/config/microblaze/microblaze.cc | 15 | +++ b/gcc/config/microblaze/microblaze.cc |
| 15 | @@ -3697,11 +3697,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[]) | 16 | @@ -3698,11 +3698,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[]) |
| 16 | { | 17 | { |
| 17 | comp_reg = cmp_op0; | 18 | comp_reg = cmp_op0; |
| 18 | condition = gen_rtx_fmt_ee (signed_condition (code), mode, comp_reg, const0_rtx); | 19 | condition = gen_rtx_fmt_ee (signed_condition (code), mode, comp_reg, const0_rtx); |
| @@ -25,7 +26,7 @@ index f59a71ac072..e33e1bc1482 100644 | |||
| 25 | } | 26 | } |
| 26 | 27 | ||
| 27 | else if (code == EQ || code == NE) | 28 | else if (code == EQ || code == NE) |
| 28 | @@ -3712,10 +3708,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[]) | 29 | @@ -3713,10 +3709,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[]) |
| 29 | else | 30 | else |
| 30 | emit_insn (gen_xordi3 (comp_reg, cmp_op0, cmp_op1)); | 31 | emit_insn (gen_xordi3 (comp_reg, cmp_op0, cmp_op1)); |
| 31 | condition = gen_rtx_fmt_ee (signed_condition (code), mode, comp_reg, const0_rtx); | 32 | condition = gen_rtx_fmt_ee (signed_condition (code), mode, comp_reg, const0_rtx); |
| @@ -37,7 +38,7 @@ index f59a71ac072..e33e1bc1482 100644 | |||
| 37 | } | 38 | } |
| 38 | else | 39 | else |
| 39 | { | 40 | { |
| 40 | @@ -3748,10 +3741,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) | 41 | @@ -3749,10 +3742,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) |
| 41 | comp_reg = cmp_op0; | 42 | comp_reg = cmp_op0; |
| 42 | condition = gen_rtx_fmt_ee (signed_condition (code), | 43 | condition = gen_rtx_fmt_ee (signed_condition (code), |
| 43 | mode, comp_reg, const0_rtx); | 44 | mode, comp_reg, const0_rtx); |
| @@ -49,7 +50,7 @@ index f59a71ac072..e33e1bc1482 100644 | |||
| 49 | } | 50 | } |
| 50 | else if (code == EQ) | 51 | else if (code == EQ) |
| 51 | { | 52 | { |
| 52 | @@ -3766,10 +3756,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) | 53 | @@ -3767,10 +3757,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) |
| 53 | cmp_op1)); | 54 | cmp_op1)); |
| 54 | } | 55 | } |
| 55 | condition = gen_rtx_EQ (mode, comp_reg, const0_rtx); | 56 | condition = gen_rtx_EQ (mode, comp_reg, const0_rtx); |
| @@ -61,7 +62,7 @@ index f59a71ac072..e33e1bc1482 100644 | |||
| 61 | 62 | ||
| 62 | } | 63 | } |
| 63 | else if (code == NE) | 64 | else if (code == NE) |
| 64 | @@ -3785,10 +3772,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) | 65 | @@ -3786,10 +3773,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) |
| 65 | cmp_op1)); | 66 | cmp_op1)); |
| 66 | } | 67 | } |
| 67 | condition = gen_rtx_NE (mode, comp_reg, const0_rtx); | 68 | condition = gen_rtx_NE (mode, comp_reg, const0_rtx); |
| @@ -73,7 +74,7 @@ index f59a71ac072..e33e1bc1482 100644 | |||
| 73 | } | 74 | } |
| 74 | else | 75 | else |
| 75 | { | 76 | { |
| 76 | @@ -3830,7 +3814,7 @@ microblaze_expand_conditional_branch_df (rtx operands[]) | 77 | @@ -3831,7 +3815,7 @@ microblaze_expand_conditional_branch_df (rtx operands[]) |
| 77 | 78 | ||
| 78 | emit_insn (gen_cstoredf4 (comp_reg, operands[0], cmp_op0, cmp_op1)); | 79 | emit_insn (gen_cstoredf4 (comp_reg, operands[0], cmp_op0, cmp_op1)); |
| 79 | condition = gen_rtx_NE (Pmode, comp_reg, const0_rtx); | 80 | condition = gen_rtx_NE (Pmode, comp_reg, const0_rtx); |
| @@ -83,7 +84,7 @@ index f59a71ac072..e33e1bc1482 100644 | |||
| 83 | 84 | ||
| 84 | /* Implement TARGET_FRAME_POINTER_REQUIRED. */ | 85 | /* Implement TARGET_FRAME_POINTER_REQUIRED. */ |
| 85 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 86 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 86 | index 7bc91602ca2..ddf01505bd8 100644 | 87 | index c99150ff0da..566c53ba228 100644 |
| 87 | --- a/gcc/config/microblaze/microblaze.md | 88 | --- a/gcc/config/microblaze/microblaze.md |
| 88 | +++ b/gcc/config/microblaze/microblaze.md | 89 | +++ b/gcc/config/microblaze/microblaze.md |
| 89 | @@ -2268,7 +2268,27 @@ else | 90 | @@ -2268,7 +2268,27 @@ else |
| @@ -264,5 +265,5 @@ index 7bc91602ca2..ddf01505bd8 100644 | |||
| 264 | ;; Unconditional branches | 265 | ;; Unconditional branches |
| 265 | ;;---------------------------------------------------------------- | 266 | ;;---------------------------------------------------------------- |
| 266 | -- | 267 | -- |
| 267 | 2.17.1 | 268 | 2.37.1 (Apple Git-137.1) |
| 268 | 269 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0030-Patch-Microblaze-previous-commit-broke-the-handling-.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0030-Patch-Microblaze-previous-commit-broke-the-handling-.patch index 528fef0c..83d047cb 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0030-Patch-Microblaze-previous-commit-broke-the-handling-.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0030-Patch-Microblaze-previous-commit-broke-the-handling-.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 37af05f1ea7dc8476057580944a236f135babaf8 Mon Sep 17 00:00:00 2001 | 1 | From af910dd71faec99838e421dd76fd5231e34bee3e Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Wed, 8 Aug 2018 17:37:26 +0530 | 3 | Date: Wed, 8 Aug 2018 17:37:26 +0530 |
| 4 | Subject: [PATCH 30/53] [Patch,Microblaze] : previous commit broke the | 4 | Subject: [PATCH 30/53] [Patch,Microblaze] : previous commit broke the |
| @@ -9,7 +9,7 @@ Subject: [PATCH 30/53] [Patch,Microblaze] : previous commit broke the | |||
| 9 | 1 file changed, 2 insertions(+), 2 deletions(-) | 9 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 10 | 10 | ||
| 11 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 11 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 12 | index ddf01505bd8..87158066562 100644 | 12 | index 566c53ba228..e54888550f6 100644 |
| 13 | --- a/gcc/config/microblaze/microblaze.md | 13 | --- a/gcc/config/microblaze/microblaze.md |
| 14 | +++ b/gcc/config/microblaze/microblaze.md | 14 | +++ b/gcc/config/microblaze/microblaze.md |
| 15 | @@ -2224,8 +2224,8 @@ else | 15 | @@ -2224,8 +2224,8 @@ else |
| @@ -24,5 +24,5 @@ index ddf01505bd8..87158066562 100644 | |||
| 24 | (pc)))] | 24 | (pc)))] |
| 25 | "" | 25 | "" |
| 26 | -- | 26 | -- |
| 27 | 2.17.1 | 27 | 2.37.1 (Apple Git-137.1) |
| 28 | 28 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0031-Patch-Microblaze-Support-of-multilibs-with-m64.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0031-Patch-Microblaze-Support-of-multilibs-with-m64.patch index 5235aedc..c230049c 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0031-Patch-Microblaze-Support-of-multilibs-with-m64.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0031-Patch-Microblaze-Support-of-multilibs-with-m64.patch | |||
| @@ -1,28 +1,32 @@ | |||
| 1 | From 397a532bd80e21682ca3b5e230949f66c5b9ad30 Mon Sep 17 00:00:00 2001 | 1 | From 6921698fc0acf40cb036cf71649762e7a21bf604 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 11 Sep 2018 13:43:48 +0530 | 3 | Date: Tue, 11 Sep 2018 13:43:48 +0530 |
| 4 | Subject: [PATCH 31/53] [Patch, Microblaze] : Support of multilibs with m64 ... | 4 | Subject: [PATCH 31/53] [Patch, Microblaze] : Support of multilibs with m64 ... |
| 5 | 5 | ||
| 6 | Conflicts: | ||
| 7 | gcc/config/microblaze/microblaze-c.c | ||
| 8 | |||
| 9 | signed-off-by : Mahesh Bodapati <mbodapat@xilinx.com> | ||
| 6 | --- | 10 | --- |
| 7 | gcc/config/microblaze/microblaze-c.cc | 1 + | 11 | gcc/config/microblaze/microblaze-c.cc | 1 + |
| 8 | gcc/config/microblaze/t-microblaze | 15 ++++++--------- | 12 | gcc/config/microblaze/t-microblaze | 15 ++++++--------- |
| 9 | libgcc/config/microblaze/t-microblaze | 11 +++-------- | 13 | libgcc/config/microblaze/t-microblaze | 11 +++-------- |
| 10 | 3 files changed, 10 insertions(+), 17 deletions(-) | 14 | 3 files changed, 10 insertions(+), 17 deletions(-) |
| 11 | 15 | ||
| 12 | diff --git a/gcc/config/microblaze/microblaze-c.cc b/gcc/config/microblaze/microblaze-c.cc | 16 | diff --git a/gcc/config/microblaze/microblaze-c.cc b/gcc/config/microblaze/microblaze-c.cc |
| 13 | index 2dcb879992c..50d01feb670 100644 | 17 | index ef8d2430565..4e83a84b112 100644 |
| 14 | --- a/gcc/config/microblaze/microblaze-c.cc | 18 | --- a/gcc/config/microblaze/microblaze-c.cc |
| 15 | +++ b/gcc/config/microblaze/microblaze-c.cc | 19 | +++ b/gcc/config/microblaze/microblaze-c.cc |
| 16 | @@ -102,6 +102,7 @@ microblaze_cpp_define (cpp_reader *pfile) | 20 | @@ -102,6 +102,7 @@ microblaze_cpp_define (cpp_reader *pfile) |
| 17 | } | 21 | } |
| 18 | if (TARGET_MB_64) | 22 | if (TARGET_MB_64) |
| 19 | { | 23 | { |
| 20 | + builtin_define ("__microblaze64"); | 24 | + builtin_define ("__microblaze64"); |
| 21 | builtin_define ("__arch64__"); | 25 | builtin_define ("__arch64__"); |
| 22 | builtin_define ("__microblaze64__"); | 26 | builtin_define ("__microblaze64__"); |
| 23 | builtin_define ("__MICROBLAZE64__"); | 27 | builtin_define ("__MICROBLAZE64__"); |
| 24 | diff --git a/gcc/config/microblaze/t-microblaze b/gcc/config/microblaze/t-microblaze | 28 | diff --git a/gcc/config/microblaze/t-microblaze b/gcc/config/microblaze/t-microblaze |
| 25 | index 9fc80b142ce..35ab9654052 100644 | 29 | index 965132b3513..47b869b9303 100644 |
| 26 | --- a/gcc/config/microblaze/t-microblaze | 30 | --- a/gcc/config/microblaze/t-microblaze |
| 27 | +++ b/gcc/config/microblaze/t-microblaze | 31 | +++ b/gcc/config/microblaze/t-microblaze |
| 28 | @@ -1,12 +1,9 @@ | 32 | @@ -1,12 +1,9 @@ |
| @@ -69,5 +73,5 @@ index 35021b24b7d..8d954a49575 100644 | |||
| 69 | - $(srcdir)/config/microblaze/divsi3_table.c \ | 73 | - $(srcdir)/config/microblaze/divsi3_table.c \ |
| 70 | + $(srcdir)/config/microblaze/divsi3_table.c | 74 | + $(srcdir)/config/microblaze/divsi3_table.c |
| 71 | -- | 75 | -- |
| 72 | 2.17.1 | 76 | 2.37.1 (Apple Git-137.1) |
| 73 | 77 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0032-Fixed-issues-like.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0032-Patch-MicroBlaze-Fixed-issues-like.patch index 66a0a0d3..36a20450 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0032-Fixed-issues-like.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0032-Patch-MicroBlaze-Fixed-issues-like.patch | |||
| @@ -1,19 +1,19 @@ | |||
| 1 | From c03a994475d8894ae0913dd3534e72bfb389aa28 Mon Sep 17 00:00:00 2001 | 1 | From 7f827e73dff27c764e5f475613e3e06ae546103f Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 11 Sep 2018 14:58:00 +0530 | 3 | Date: Tue, 13 Sep 2022 15:24:25 +0530 |
| 4 | Subject: [PATCH 32/53] Fixed issues like: 1 Interrupt alignment issue 2 Sign | 4 | Subject: [PATCH 32/53] [Patch,MicroBlaze]: Fixed issues like: 1 Interrupt |
| 5 | extension issue | 5 | alignment issue 2 Sign extension issue |
| 6 | 6 | ||
| 7 | --- | 7 | --- |
| 8 | gcc/config/microblaze/microblaze.cc | 16 ++++++++++------ | 8 | gcc/config/microblaze/microblaze.cc | 16 ++++++++++------ |
| 9 | gcc/config/microblaze/microblaze.md | 2 +- | 9 | gcc/config/microblaze/microblaze.md | 2 +- |
| 10 | 2 files changed, 11 insertions(+), 7 deletions(-) | 10 | 2 files changed, 11 insertions(+), 7 deletions(-) |
| 11 | 11 | ||
| 12 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc | 12 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 13 | index e33e1bc1482..64b948d6cfc 100644 | 13 | index 4792e3ba370..f1da145232a 100644 |
| 14 | --- a/gcc/config/microblaze/microblaze.cc | 14 | --- a/gcc/config/microblaze/microblaze.cc |
| 15 | +++ b/gcc/config/microblaze/microblaze.cc | 15 | +++ b/gcc/config/microblaze/microblaze.cc |
| 16 | @@ -2177,9 +2177,14 @@ compute_frame_size (HOST_WIDE_INT size) | 16 | @@ -2178,9 +2178,14 @@ compute_frame_size (HOST_WIDE_INT size) |
| 17 | 17 | ||
| 18 | total_size += gp_reg_size; | 18 | total_size += gp_reg_size; |
| 19 | 19 | ||
| @@ -30,7 +30,7 @@ index e33e1bc1482..64b948d6cfc 100644 | |||
| 30 | 30 | ||
| 31 | /* No space to be allocated for link register in leaf functions with no other | 31 | /* No space to be allocated for link register in leaf functions with no other |
| 32 | stack requirements. */ | 32 | stack requirements. */ |
| 33 | @@ -2464,7 +2469,6 @@ print_operand (FILE * file, rtx op, int letter) | 33 | @@ -2465,7 +2470,6 @@ print_operand (FILE * file, rtx op, int letter) |
| 34 | else if (letter == 'h' || letter == 'j') | 34 | else if (letter == 'h' || letter == 'j') |
| 35 | { | 35 | { |
| 36 | long val[2]; | 36 | long val[2]; |
| @@ -38,7 +38,7 @@ index e33e1bc1482..64b948d6cfc 100644 | |||
| 38 | long l[2]; | 38 | long l[2]; |
| 39 | if (code == CONST_DOUBLE) | 39 | if (code == CONST_DOUBLE) |
| 40 | { | 40 | { |
| 41 | @@ -2479,10 +2483,10 @@ print_operand (FILE * file, rtx op, int letter) | 41 | @@ -2480,10 +2484,10 @@ print_operand (FILE * file, rtx op, int letter) |
| 42 | } | 42 | } |
| 43 | else if (code == CONST_INT || code == CONST)// || code == SYMBOL_REF ||code == LABEL_REF) | 43 | else if (code == CONST_INT || code == CONST)// || code == SYMBOL_REF ||code == LABEL_REF) |
| 44 | { | 44 | { |
| @@ -53,7 +53,7 @@ index e33e1bc1482..64b948d6cfc 100644 | |||
| 53 | else if (code == CONST_DOUBLE) | 53 | else if (code == CONST_DOUBLE) |
| 54 | { | 54 | { |
| 55 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 55 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 56 | index 87158066562..b154d15c34c 100644 | 56 | index e54888550f6..4e5d21a1f4c 100644 |
| 57 | --- a/gcc/config/microblaze/microblaze.md | 57 | --- a/gcc/config/microblaze/microblaze.md |
| 58 | +++ b/gcc/config/microblaze/microblaze.md | 58 | +++ b/gcc/config/microblaze/microblaze.md |
| 59 | @@ -1096,7 +1096,7 @@ | 59 | @@ -1096,7 +1096,7 @@ |
| @@ -66,5 +66,5 @@ index 87158066562..b154d15c34c 100644 | |||
| 66 | } | 66 | } |
| 67 | } | 67 | } |
| 68 | -- | 68 | -- |
| 69 | 2.17.1 | 69 | 2.37.1 (Apple Git-137.1) |
| 70 | 70 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0033-Fixed-below-issues.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0033-Patch-MicroBlaze.patch index c2e2b5ed..9c9e4dd2 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0033-Fixed-below-issues.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0033-Patch-MicroBlaze.patch | |||
| @@ -1,16 +1,14 @@ | |||
| 1 | From 844daa118a8f376e5a53040fc953c86e70d34140 Mon Sep 17 00:00:00 2001 | 1 | From 0a86428a345ed359f788a72a0e185053b598e908 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 26 Nov 2019 17:26:15 +0530 | 3 | Date: Tue, 13 Sep 2022 15:28:58 +0530 |
| 4 | Subject: [PATCH 33/53] Fixed below issues: | 4 | Subject: [PATCH 33/53] [Patch,MicroBlaze]: fixed below issues: - Floating |
| 5 | point print issues in 64bit mode - Dejagnu Jump related issues - | ||
| 6 | Added dbl instruction | ||
| 5 | 7 | ||
| 6 | - Floating point print issues in 64bit mode | 8 | Conflicts: |
| 7 | - Dejagnu Jump related issues | 9 | gcc/config/microblaze/microblaze.md |
| 8 | - Added dbl instruction | ||
| 9 | |||
| 10 | Conflicts: | ||
| 11 | gcc/config/microblaze/microblaze.md | ||
| 12 | --- | 10 | --- |
| 13 | gcc/config/microblaze/microblaze.cc | 12 +++- | 11 | gcc/config/microblaze/microblaze.cc | 12 +++- |
| 14 | gcc/config/microblaze/microblaze.h | 7 +++ | 12 | gcc/config/microblaze/microblaze.h | 7 +++ |
| 15 | gcc/config/microblaze/microblaze.md | 86 ++++++++++++++++++++++++----- | 13 | gcc/config/microblaze/microblaze.md | 86 ++++++++++++++++++++++++----- |
| 16 | libgcc/config/microblaze/crti.S | 24 +++++++- | 14 | libgcc/config/microblaze/crti.S | 24 +++++++- |
| @@ -18,10 +16,10 @@ Conflicts: | |||
| 18 | 5 files changed, 125 insertions(+), 17 deletions(-) | 16 | 5 files changed, 125 insertions(+), 17 deletions(-) |
| 19 | 17 | ||
| 20 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc | 18 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 21 | index 64b948d6cfc..b2cd89a310a 100644 | 19 | index f1da145232a..7a08390a027 100644 |
| 22 | --- a/gcc/config/microblaze/microblaze.cc | 20 | --- a/gcc/config/microblaze/microblaze.cc |
| 23 | +++ b/gcc/config/microblaze/microblaze.cc | 21 | +++ b/gcc/config/microblaze/microblaze.cc |
| 24 | @@ -2473,7 +2473,12 @@ print_operand (FILE * file, rtx op, int letter) | 22 | @@ -2474,7 +2474,12 @@ print_operand (FILE * file, rtx op, int letter) |
| 25 | if (code == CONST_DOUBLE) | 23 | if (code == CONST_DOUBLE) |
| 26 | { | 24 | { |
| 27 | if (GET_MODE (op) == DFmode) | 25 | if (GET_MODE (op) == DFmode) |
| @@ -35,7 +33,7 @@ index 64b948d6cfc..b2cd89a310a 100644 | |||
| 35 | else | 33 | else |
| 36 | { | 34 | { |
| 37 | REAL_VALUE_TO_TARGET_DOUBLE (*CONST_DOUBLE_REAL_VALUE (op), l); | 35 | REAL_VALUE_TO_TARGET_DOUBLE (*CONST_DOUBLE_REAL_VALUE (op), l); |
| 38 | @@ -3876,7 +3881,10 @@ microblaze_expand_divide (rtx operands[]) | 36 | @@ -3877,7 +3882,10 @@ microblaze_expand_divide (rtx operands[]) |
| 39 | gen_rtx_PLUS (QImode, regt1, div_table_rtx)); | 37 | gen_rtx_PLUS (QImode, regt1, div_table_rtx)); |
| 40 | 38 | ||
| 41 | insn = emit_insn (gen_zero_extendqisi2(operands[0],mem_rtx)); | 39 | insn = emit_insn (gen_zero_extendqisi2(operands[0],mem_rtx)); |
| @@ -48,7 +46,7 @@ index 64b948d6cfc..b2cd89a310a 100644 | |||
| 48 | LABEL_NUSES (div_end_label) = 1; | 46 | LABEL_NUSES (div_end_label) = 1; |
| 49 | emit_barrier (); | 47 | emit_barrier (); |
| 50 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h | 48 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h |
| 51 | index 94ac736221c..17bf470c95b 100644 | 49 | index 5f30b8ac195..ac4ea43a706 100644 |
| 52 | --- a/gcc/config/microblaze/microblaze.h | 50 | --- a/gcc/config/microblaze/microblaze.h |
| 53 | +++ b/gcc/config/microblaze/microblaze.h | 51 | +++ b/gcc/config/microblaze/microblaze.h |
| 54 | @@ -888,10 +888,17 @@ do { \ | 52 | @@ -888,10 +888,17 @@ do { \ |
| @@ -70,7 +68,7 @@ index 94ac736221c..17bf470c95b 100644 | |||
| 70 | /* We need to group -lm as well, since some Newlib math functions | 68 | /* We need to group -lm as well, since some Newlib math functions |
| 71 | reference __errno! */ | 69 | reference __errno! */ |
| 72 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 70 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 73 | index b154d15c34c..7d6cf263eb6 100644 | 71 | index 4e5d21a1f4c..5a950b49591 100644 |
| 74 | --- a/gcc/config/microblaze/microblaze.md | 72 | --- a/gcc/config/microblaze/microblaze.md |
| 75 | +++ b/gcc/config/microblaze/microblaze.md | 73 | +++ b/gcc/config/microblaze/microblaze.md |
| 76 | @@ -527,6 +527,15 @@ | 74 | @@ -527,6 +527,15 @@ |
| @@ -221,7 +219,7 @@ index b154d15c34c..7d6cf263eb6 100644 | |||
| 221 | ;;---------------------------------------------------------------- | 219 | ;;---------------------------------------------------------------- |
| 222 | ;; Function prologue/epilogue and stack allocation | 220 | ;; Function prologue/epilogue and stack allocation |
| 223 | ;;---------------------------------------------------------------- | 221 | ;;---------------------------------------------------------------- |
| 224 | @@ -3099,7 +3157,7 @@ else | 222 | @@ -3101,7 +3159,7 @@ else |
| 225 | ;; The insn to set GOT. The hardcoded number "8" accounts for $pc difference | 223 | ;; The insn to set GOT. The hardcoded number "8" accounts for $pc difference |
| 226 | ;; between "mfs" and "addik" instructions. | 224 | ;; between "mfs" and "addik" instructions. |
| 227 | (define_insn "set_got" | 225 | (define_insn "set_got" |
| @@ -231,7 +229,7 @@ index b154d15c34c..7d6cf263eb6 100644 | |||
| 231 | "" | 229 | "" |
| 232 | "mfs\t%0,rpc\n\taddik\t%0,%0,_GLOBAL_OFFSET_TABLE_+8" | 230 | "mfs\t%0,rpc\n\taddik\t%0,%0,_GLOBAL_OFFSET_TABLE_+8" |
| 233 | diff --git a/libgcc/config/microblaze/crti.S b/libgcc/config/microblaze/crti.S | 231 | diff --git a/libgcc/config/microblaze/crti.S b/libgcc/config/microblaze/crti.S |
| 234 | index bc69d890370..7400eeb2e3b 100644 | 232 | index ec797e1bf17..15ebe68c277 100644 |
| 235 | --- a/libgcc/config/microblaze/crti.S | 233 | --- a/libgcc/config/microblaze/crti.S |
| 236 | +++ b/libgcc/config/microblaze/crti.S | 234 | +++ b/libgcc/config/microblaze/crti.S |
| 237 | @@ -33,11 +33,32 @@ | 235 | @@ -33,11 +33,32 @@ |
| @@ -274,7 +272,7 @@ index bc69d890370..7400eeb2e3b 100644 | |||
| 274 | sw r15, r0, r1 | 272 | sw r15, r0, r1 |
| 275 | +#endif | 273 | +#endif |
| 276 | diff --git a/libgcc/config/microblaze/crtn.S b/libgcc/config/microblaze/crtn.S | 274 | diff --git a/libgcc/config/microblaze/crtn.S b/libgcc/config/microblaze/crtn.S |
| 277 | index 1a1f0a8e0f3..14d9a084e3e 100644 | 275 | index 977b43b9436..9de3d4de13c 100644 |
| 278 | --- a/libgcc/config/microblaze/crtn.S | 276 | --- a/libgcc/config/microblaze/crtn.S |
| 279 | +++ b/libgcc/config/microblaze/crtn.S | 277 | +++ b/libgcc/config/microblaze/crtn.S |
| 280 | @@ -29,7 +29,19 @@ | 278 | @@ -29,7 +29,19 @@ |
| @@ -303,5 +301,5 @@ index 1a1f0a8e0f3..14d9a084e3e 100644 | |||
| 303 | addik r1, r1, 16 | 301 | addik r1, r1, 16 |
| 304 | +#endif | 302 | +#endif |
| 305 | -- | 303 | -- |
| 306 | 2.17.1 | 304 | 2.37.1 (Apple Git-137.1) |
| 307 | 305 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0034-Added-double-arith-instructions.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0034-Added-double-arith-instructions.patch index 293c9f90..7bd3001d 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0034-Added-double-arith-instructions.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0034-Added-double-arith-instructions.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 93874549e864b39689060edda456c897ea0fac4e Mon Sep 17 00:00:00 2001 | 1 | From 80c16e39bdf8643184c353e34f146dc8601c2c1e Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
| 3 | Date: Tue, 9 Oct 2018 10:07:08 +0530 | 3 | Date: Tue, 9 Oct 2018 10:07:08 +0530 |
| 4 | Subject: [PATCH 34/53] -Added double arith instructions -Fixed prologue stack | 4 | Subject: [PATCH 34/53] -Added double arith instructions -Fixed prologue stack |
| @@ -10,7 +10,7 @@ Subject: [PATCH 34/53] -Added double arith instructions -Fixed prologue stack | |||
| 10 | 2 files changed, 76 insertions(+), 9 deletions(-) | 10 | 2 files changed, 76 insertions(+), 9 deletions(-) |
| 11 | 11 | ||
| 12 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 12 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 13 | index 7d6cf263eb6..943037336f1 100644 | 13 | index 5a950b49591..5506aee7be5 100644 |
| 14 | --- a/gcc/config/microblaze/microblaze.md | 14 | --- a/gcc/config/microblaze/microblaze.md |
| 15 | +++ b/gcc/config/microblaze/microblaze.md | 15 | +++ b/gcc/config/microblaze/microblaze.md |
| 16 | @@ -527,6 +527,66 @@ | 16 | @@ -527,6 +527,66 @@ |
| @@ -113,7 +113,7 @@ index 7d6cf263eb6..943037336f1 100644 | |||
| 113 | (set_attr "mode" "DI") | 113 | (set_attr "mode" "DI") |
| 114 | (set_attr "length" "4,4,4")]) | 114 | (set_attr "length" "4,4,4")]) |
| 115 | diff --git a/gcc/config/microblaze/t-microblaze b/gcc/config/microblaze/t-microblaze | 115 | diff --git a/gcc/config/microblaze/t-microblaze b/gcc/config/microblaze/t-microblaze |
| 116 | index 35ab9654052..dfef45c268e 100644 | 116 | index 47b869b9303..3522afd4831 100644 |
| 117 | --- a/gcc/config/microblaze/t-microblaze | 117 | --- a/gcc/config/microblaze/t-microblaze |
| 118 | +++ b/gcc/config/microblaze/t-microblaze | 118 | +++ b/gcc/config/microblaze/t-microblaze |
| 119 | @@ -1,6 +1,13 @@ | 119 | @@ -1,6 +1,13 @@ |
| @@ -131,5 +131,5 @@ index 35ab9654052..dfef45c268e 100644 | |||
| 131 | MULTILIB_EXCEPTIONS += *mlittle-endian/mxl-multiply-high mxl-multiply-high | 131 | MULTILIB_EXCEPTIONS += *mlittle-endian/mxl-multiply-high mxl-multiply-high |
| 132 | MULTILIB_EXCEPTIONS += *m64/mxl-barrel-shift/mlittle-endian/mxl-multiply-high | 132 | MULTILIB_EXCEPTIONS += *m64/mxl-barrel-shift/mlittle-endian/mxl-multiply-high |
| 133 | -- | 133 | -- |
| 134 | 2.17.1 | 134 | 2.37.1 (Apple Git-137.1) |
| 135 | 135 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch index 6135b952..89018aae 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 8c359136e4b5ca105946b259212ed4bac0a69a9e Mon Sep 17 00:00:00 2001 | 1 | From 455216291580ca22767433eec11941c5f2471892 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
| 3 | Date: Fri, 12 Oct 2018 16:07:36 +0530 | 3 | Date: Fri, 12 Oct 2018 16:07:36 +0530 |
| 4 | Subject: [PATCH 35/53] Fixed the issue in the delay slot with swap | 4 | Subject: [PATCH 35/53] Fixed the issue in the delay slot with swap |
| @@ -9,7 +9,7 @@ Subject: [PATCH 35/53] Fixed the issue in the delay slot with swap | |||
| 9 | 1 file changed, 6 insertions(+) | 9 | 1 file changed, 6 insertions(+) |
| 10 | 10 | ||
| 11 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 11 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 12 | index 943037336f1..162c6231a86 100644 | 12 | index 5506aee7be5..4a372f8fd3f 100644 |
| 13 | --- a/gcc/config/microblaze/microblaze.md | 13 | --- a/gcc/config/microblaze/microblaze.md |
| 14 | +++ b/gcc/config/microblaze/microblaze.md | 14 | +++ b/gcc/config/microblaze/microblaze.md |
| 15 | @@ -443,6 +443,9 @@ | 15 | @@ -443,6 +443,9 @@ |
| @@ -33,5 +33,5 @@ index 943037336f1..162c6231a86 100644 | |||
| 33 | 33 | ||
| 34 | ;;---------------------------------------------------------------- | 34 | ;;---------------------------------------------------------------- |
| 35 | -- | 35 | -- |
| 36 | 2.17.1 | 36 | 2.37.1 (Apple Git-137.1) |
| 37 | 37 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch index 23b640a6..0c27d69f 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 08ca1c1550145a8bddbd03a594620db13a259238 Mon Sep 17 00:00:00 2001 | 1 | From b8c468f1bd467213083b59b54af100ee0c6dea9e Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
| 3 | Date: Sat, 13 Oct 2018 21:12:43 +0530 | 3 | Date: Sat, 13 Oct 2018 21:12:43 +0530 |
| 4 | Subject: [PATCH 36/53] Fixed the load store issue with the 32bit arith | 4 | Subject: [PATCH 36/53] Fixed the load store issue with the 32bit arith |
| @@ -13,7 +13,7 @@ Subject: [PATCH 36/53] Fixed the load store issue with the 32bit arith | |||
| 13 | 5 files changed, 98 insertions(+), 4 deletions(-) | 13 | 5 files changed, 98 insertions(+), 4 deletions(-) |
| 14 | 14 | ||
| 15 | diff --git a/libgcc/config/microblaze/divsi3.S b/libgcc/config/microblaze/divsi3.S | 15 | diff --git a/libgcc/config/microblaze/divsi3.S b/libgcc/config/microblaze/divsi3.S |
| 16 | index 886a4f2bb36..3a7fc4d6122 100644 | 16 | index 14829ec6701..b464deed481 100644 |
| 17 | --- a/libgcc/config/microblaze/divsi3.S | 17 | --- a/libgcc/config/microblaze/divsi3.S |
| 18 | +++ b/libgcc/config/microblaze/divsi3.S | 18 | +++ b/libgcc/config/microblaze/divsi3.S |
| 19 | @@ -41,6 +41,17 @@ | 19 | @@ -41,6 +41,17 @@ |
| @@ -70,7 +70,7 @@ index 886a4f2bb36..3a7fc4d6122 100644 | |||
| 70 | .size __divsi3, . - __divsi3 | 70 | .size __divsi3, . - __divsi3 |
| 71 | 71 | ||
| 72 | diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S | 72 | diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S |
| 73 | index 2c4f39a045f..3e405ea6267 100644 | 73 | index b8f2e37809d..e0fbd91e766 100644 |
| 74 | --- a/libgcc/config/microblaze/modsi3.S | 74 | --- a/libgcc/config/microblaze/modsi3.S |
| 75 | +++ b/libgcc/config/microblaze/modsi3.S | 75 | +++ b/libgcc/config/microblaze/modsi3.S |
| 76 | @@ -41,6 +41,17 @@ | 76 | @@ -41,6 +41,17 @@ |
| @@ -128,7 +128,7 @@ index 2c4f39a045f..3e405ea6267 100644 | |||
| 128 | .size __modsi3, . - __modsi3 | 128 | .size __modsi3, . - __modsi3 |
| 129 | 129 | ||
| 130 | diff --git a/libgcc/config/microblaze/mulsi3.S b/libgcc/config/microblaze/mulsi3.S | 130 | diff --git a/libgcc/config/microblaze/mulsi3.S b/libgcc/config/microblaze/mulsi3.S |
| 131 | index c50a380177a..0329fa3037a 100644 | 131 | index f48fcf8270c..657668ef826 100644 |
| 132 | --- a/libgcc/config/microblaze/mulsi3.S | 132 | --- a/libgcc/config/microblaze/mulsi3.S |
| 133 | +++ b/libgcc/config/microblaze/mulsi3.S | 133 | +++ b/libgcc/config/microblaze/mulsi3.S |
| 134 | @@ -41,6 +41,9 @@ | 134 | @@ -41,6 +41,9 @@ |
| @@ -142,7 +142,7 @@ index c50a380177a..0329fa3037a 100644 | |||
| 142 | .frame r1,0,r15 | 142 | .frame r1,0,r15 |
| 143 | add r3,r0,r0 | 143 | add r3,r0,r0 |
| 144 | diff --git a/libgcc/config/microblaze/udivsi3.S b/libgcc/config/microblaze/udivsi3.S | 144 | diff --git a/libgcc/config/microblaze/udivsi3.S b/libgcc/config/microblaze/udivsi3.S |
| 145 | index 1bf73265b98..7bdcd8873e5 100644 | 145 | index 2c321f94b09..fc6a4b5a248 100644 |
| 146 | --- a/libgcc/config/microblaze/udivsi3.S | 146 | --- a/libgcc/config/microblaze/udivsi3.S |
| 147 | +++ b/libgcc/config/microblaze/udivsi3.S | 147 | +++ b/libgcc/config/microblaze/udivsi3.S |
| 148 | @@ -41,6 +41,16 @@ | 148 | @@ -41,6 +41,16 @@ |
| @@ -197,7 +197,7 @@ index 1bf73265b98..7bdcd8873e5 100644 | |||
| 197 | .end __udivsi3 | 197 | .end __udivsi3 |
| 198 | .size __udivsi3, . - __udivsi3 | 198 | .size __udivsi3, . - __udivsi3 |
| 199 | diff --git a/libgcc/config/microblaze/umodsi3.S b/libgcc/config/microblaze/umodsi3.S | 199 | diff --git a/libgcc/config/microblaze/umodsi3.S b/libgcc/config/microblaze/umodsi3.S |
| 200 | index 2bc0909605f..7d1e4484a53 100644 | 200 | index fbe942dc5f2..b68ba7a5ea6 100644 |
| 201 | --- a/libgcc/config/microblaze/umodsi3.S | 201 | --- a/libgcc/config/microblaze/umodsi3.S |
| 202 | +++ b/libgcc/config/microblaze/umodsi3.S | 202 | +++ b/libgcc/config/microblaze/umodsi3.S |
| 203 | @@ -41,6 +41,16 @@ | 203 | @@ -41,6 +41,16 @@ |
| @@ -252,5 +252,5 @@ index 2bc0909605f..7d1e4484a53 100644 | |||
| 252 | .end __umodsi3 | 252 | .end __umodsi3 |
| 253 | .size __umodsi3, . - __umodsi3 | 253 | .size __umodsi3, . - __umodsi3 |
| 254 | -- | 254 | -- |
| 255 | 2.17.1 | 255 | 2.37.1 (Apple Git-137.1) |
| 256 | 256 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch index 3f0ec920..2eab03ec 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 3fbf3d7049cccb5ddec02e3360f1b4da0eb5a177 Mon Sep 17 00:00:00 2001 | 1 | From 2bc476e64f1bacc27874c152340c004c17bfd942 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
| 3 | Date: Mon, 15 Oct 2018 12:00:10 +0530 | 3 | Date: Mon, 15 Oct 2018 12:00:10 +0530 |
| 4 | Subject: [PATCH 37/53] extending the Dwarf support to 64bit Microblaze | 4 | Subject: [PATCH 37/53] extending the Dwarf support to 64bit Microblaze |
| @@ -8,7 +8,7 @@ Subject: [PATCH 37/53] extending the Dwarf support to 64bit Microblaze | |||
| 8 | 1 file changed, 1 insertion(+), 1 deletion(-) | 8 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 9 | 9 | ||
| 10 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h | 10 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h |
| 11 | index 17bf470c95b..b0c44c4fd50 100644 | 11 | index ac4ea43a706..56dfc2a3824 100644 |
| 12 | --- a/gcc/config/microblaze/microblaze.h | 12 | --- a/gcc/config/microblaze/microblaze.h |
| 13 | +++ b/gcc/config/microblaze/microblaze.h | 13 | +++ b/gcc/config/microblaze/microblaze.h |
| 14 | @@ -207,7 +207,7 @@ extern enum pipeline_type microblaze_pipe; | 14 | @@ -207,7 +207,7 @@ extern enum pipeline_type microblaze_pipe; |
| @@ -21,5 +21,5 @@ index 17bf470c95b..b0c44c4fd50 100644 | |||
| 21 | /* Target machine storage layout */ | 21 | /* Target machine storage layout */ |
| 22 | 22 | ||
| 23 | -- | 23 | -- |
| 24 | 2.17.1 | 24 | 2.37.1 (Apple Git-137.1) |
| 25 | 25 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0038-fixing-the-typo-errors-in-umodsi3-file.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0038-fixing-the-typo-errors-in-umodsi3-file.patch index 0f91a572..4d6be758 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0038-fixing-the-typo-errors-in-umodsi3-file.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0038-fixing-the-typo-errors-in-umodsi3-file.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 23c8d1d396c7ae5e478c793b72fddcec80dfd083 Mon Sep 17 00:00:00 2001 | 1 | From 1e0eaa1330f24d4989af6326ce1af4f613ea0d89 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
| 3 | Date: Tue, 16 Oct 2018 07:55:46 +0530 | 3 | Date: Tue, 16 Oct 2018 07:55:46 +0530 |
| 4 | Subject: [PATCH 38/53] fixing the typo errors in umodsi3 file | 4 | Subject: [PATCH 38/53] fixing the typo errors in umodsi3 file |
| @@ -8,7 +8,7 @@ Subject: [PATCH 38/53] fixing the typo errors in umodsi3 file | |||
| 8 | 1 file changed, 3 insertions(+), 3 deletions(-) | 8 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 9 | 9 | ||
| 10 | diff --git a/libgcc/config/microblaze/umodsi3.S b/libgcc/config/microblaze/umodsi3.S | 10 | diff --git a/libgcc/config/microblaze/umodsi3.S b/libgcc/config/microblaze/umodsi3.S |
| 11 | index 7d1e4484a53..63ab1c2a357 100644 | 11 | index b68ba7a5ea6..03be6df1fc6 100644 |
| 12 | --- a/libgcc/config/microblaze/umodsi3.S | 12 | --- a/libgcc/config/microblaze/umodsi3.S |
| 13 | +++ b/libgcc/config/microblaze/umodsi3.S | 13 | +++ b/libgcc/config/microblaze/umodsi3.S |
| 14 | @@ -47,9 +47,9 @@ __umodsi3: | 14 | @@ -47,9 +47,9 @@ __umodsi3: |
| @@ -25,5 +25,5 @@ index 7d1e4484a53..63ab1c2a357 100644 | |||
| 25 | __umodsi3: | 25 | __umodsi3: |
| 26 | .frame r1,0,r15 | 26 | .frame r1,0,r15 |
| 27 | -- | 27 | -- |
| 28 | 2.17.1 | 28 | 2.37.1 (Apple Git-137.1) |
| 29 | 29 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0039-fixing-the-32bit-LTO-related-issue9-1014024.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0039-fixing-the-32bit-LTO-related-issue9-1014024.patch index 6aa6937f..1a5a0ef7 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0039-fixing-the-32bit-LTO-related-issue9-1014024.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0039-fixing-the-32bit-LTO-related-issue9-1014024.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From cc2c7e5255edc97064d29880f156d603d3ec740a Mon Sep 17 00:00:00 2001 | 1 | From 7dbdc5ba78c9237b0a367ca61f448cf3a0277ea6 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
| 3 | Date: Wed, 17 Oct 2018 16:56:14 +0530 | 3 | Date: Wed, 17 Oct 2018 16:56:14 +0530 |
| 4 | Subject: [PATCH 39/53] fixing the 32bit LTO related issue9(1014024) | 4 | Subject: [PATCH 39/53] fixing the 32bit LTO related issue9(1014024) |
| @@ -8,7 +8,7 @@ Subject: [PATCH 39/53] fixing the 32bit LTO related issue9(1014024) | |||
| 8 | 1 file changed, 14 insertions(+), 10 deletions(-) | 8 | 1 file changed, 14 insertions(+), 10 deletions(-) |
| 9 | 9 | ||
| 10 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h | 10 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h |
| 11 | index b0c44c4fd50..c6c3a9baa5a 100644 | 11 | index 56dfc2a3824..c48b6de0d58 100644 |
| 12 | --- a/gcc/config/microblaze/microblaze.h | 12 | --- a/gcc/config/microblaze/microblaze.h |
| 13 | +++ b/gcc/config/microblaze/microblaze.h | 13 | +++ b/gcc/config/microblaze/microblaze.h |
| 14 | @@ -265,12 +265,14 @@ extern enum pipeline_type microblaze_pipe; | 14 | @@ -265,12 +265,14 @@ extern enum pipeline_type microblaze_pipe; |
| @@ -64,5 +64,5 @@ index b0c44c4fd50..c6c3a9baa5a 100644 | |||
| 64 | #define REGNO_OK_FOR_BASE_P(regno) microblaze_regno_ok_for_base_p ((regno), 1) | 64 | #define REGNO_OK_FOR_BASE_P(regno) microblaze_regno_ok_for_base_p ((regno), 1) |
| 65 | 65 | ||
| 66 | -- | 66 | -- |
| 67 | 2.17.1 | 67 | 2.37.1 (Apple Git-137.1) |
| 68 | 68 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch index e086a851..7c6f9008 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 7d245c4d22c5c845666f33f19d23c075dcae2af6 Mon Sep 17 00:00:00 2001 | 1 | From a21a41a0c574b807c7e7edaa7051a0f7395d8142 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
| 3 | Date: Fri, 19 Oct 2018 14:26:25 +0530 | 3 | Date: Fri, 19 Oct 2018 14:26:25 +0530 |
| 4 | Subject: [PATCH 40/53] Fixed the missing stack adjustment in prologue of | 4 | Subject: [PATCH 40/53] Fixed the missing stack adjustment in prologue of |
| @@ -9,7 +9,7 @@ Subject: [PATCH 40/53] Fixed the missing stack adjustment in prologue of | |||
| 9 | 1 file changed, 1 insertion(+) | 9 | 1 file changed, 1 insertion(+) |
| 10 | 10 | ||
| 11 | diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S | 11 | diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S |
| 12 | index 3e405ea6267..c98442c01c2 100644 | 12 | index e0fbd91e766..3ec17685e51 100644 |
| 13 | --- a/libgcc/config/microblaze/modsi3.S | 13 | --- a/libgcc/config/microblaze/modsi3.S |
| 14 | +++ b/libgcc/config/microblaze/modsi3.S | 14 | +++ b/libgcc/config/microblaze/modsi3.S |
| 15 | @@ -119,6 +119,7 @@ $LaRETURN_HERE: | 15 | @@ -119,6 +119,7 @@ $LaRETURN_HERE: |
| @@ -21,5 +21,5 @@ index 3e405ea6267..c98442c01c2 100644 | |||
| 21 | .end __modsi3 | 21 | .end __modsi3 |
| 22 | .size __modsi3, . - __modsi3 | 22 | .size __modsi3, . - __modsi3 |
| 23 | -- | 23 | -- |
| 24 | 2.17.1 | 24 | 2.37.1 (Apple Git-137.1) |
| 25 | 25 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0041-Patch-Microblaze-corrected-SPN-for-dlong-instruction.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0041-Patch-Microblaze-corrected-SPN-for-dlong-instruction.patch index b3b04ae7..9cec7be9 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0041-Patch-Microblaze-corrected-SPN-for-dlong-instruction.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0041-Patch-Microblaze-corrected-SPN-for-dlong-instruction.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 4de570fde0740cbcfea443aea24c2cfc9df5a876 Mon Sep 17 00:00:00 2001 | 1 | From 5f799ea01bae0573a44f3fefa825861e99f4e30a Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Wed, 24 Oct 2018 18:31:04 +0530 | 3 | Date: Wed, 24 Oct 2018 18:31:04 +0530 |
| 4 | Subject: [PATCH 41/53] [Patch,Microblaze] : corrected SPN for dlong | 4 | Subject: [PATCH 41/53] [Patch,Microblaze] : corrected SPN for dlong |
| @@ -9,7 +9,7 @@ Subject: [PATCH 41/53] [Patch,Microblaze] : corrected SPN for dlong | |||
| 9 | 1 file changed, 2 insertions(+), 2 deletions(-) | 9 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 10 | 10 | ||
| 11 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 11 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 12 | index 162c6231a86..f62ad28130b 100644 | 12 | index 4a372f8fd3f..5a964e70d1f 100644 |
| 13 | --- a/gcc/config/microblaze/microblaze.md | 13 | --- a/gcc/config/microblaze/microblaze.md |
| 14 | +++ b/gcc/config/microblaze/microblaze.md | 14 | +++ b/gcc/config/microblaze/microblaze.md |
| 15 | @@ -602,9 +602,9 @@ | 15 | @@ -602,9 +602,9 @@ |
| @@ -25,5 +25,5 @@ index 162c6231a86..f62ad28130b 100644 | |||
| 25 | "dlong\t%0,%1" | 25 | "dlong\t%0,%1" |
| 26 | [(set_attr "type" "fcvt") | 26 | [(set_attr "type" "fcvt") |
| 27 | -- | 27 | -- |
| 28 | 2.17.1 | 28 | 2.37.1 (Apple Git-137.1) |
| 29 | 29 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0042-fixing-the-long-long-long-mingw-toolchain-issue.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0042-fixing-the-long-long-long-mingw-toolchain-issue.patch index 29e8d753..8836d0e7 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0042-fixing-the-long-long-long-mingw-toolchain-issue.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0042-fixing-the-long-long-long-mingw-toolchain-issue.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From b2d05f4ad5c66fb8cec37064a77d21194db9dd32 Mon Sep 17 00:00:00 2001 | 1 | From 9c37b9690ec2c6290095209c039725f235537379 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
| 3 | Date: Thu, 29 Nov 2018 17:55:08 +0530 | 3 | Date: Thu, 29 Nov 2018 17:55:08 +0530 |
| 4 | Subject: [PATCH 42/53] fixing the long & long long mingw toolchain issue | 4 | Subject: [PATCH 42/53] fixing the long & long long mingw toolchain issue |
| @@ -9,7 +9,7 @@ Subject: [PATCH 42/53] fixing the long & long long mingw toolchain issue | |||
| 9 | 2 files changed, 5 insertions(+), 5 deletions(-) | 9 | 2 files changed, 5 insertions(+), 5 deletions(-) |
| 10 | 10 | ||
| 11 | diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md | 11 | diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md |
| 12 | index 0a4d5269314..e3f89491fb4 100644 | 12 | index 0ced155340d..3f9805dfe0a 100644 |
| 13 | --- a/gcc/config/microblaze/constraints.md | 13 | --- a/gcc/config/microblaze/constraints.md |
| 14 | +++ b/gcc/config/microblaze/constraints.md | 14 | +++ b/gcc/config/microblaze/constraints.md |
| 15 | @@ -55,7 +55,7 @@ | 15 | @@ -55,7 +55,7 @@ |
| @@ -22,7 +22,7 @@ index 0a4d5269314..e3f89491fb4 100644 | |||
| 22 | 22 | ||
| 23 | ;; Define floating point constraints | 23 | ;; Define floating point constraints |
| 24 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 24 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 25 | index f62ad28130b..74be0728e75 100644 | 25 | index 5a964e70d1f..f509bd5e665 100644 |
| 26 | --- a/gcc/config/microblaze/microblaze.md | 26 | --- a/gcc/config/microblaze/microblaze.md |
| 27 | +++ b/gcc/config/microblaze/microblaze.md | 27 | +++ b/gcc/config/microblaze/microblaze.md |
| 28 | @@ -648,8 +648,8 @@ | 28 | @@ -648,8 +648,8 @@ |
| @@ -55,5 +55,5 @@ index f62ad28130b..74be0728e75 100644 | |||
| 55 | else | 55 | else |
| 56 | return "addlik\t%0,r0,%1"; | 56 | return "addlik\t%0,r0,%1"; |
| 57 | -- | 57 | -- |
| 58 | 2.17.1 | 58 | 2.37.1 (Apple Git-137.1) |
| 59 | 59 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch index 4fcf90c8..c8caff29 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 3691860b698107ce5338468cbef932c63d195961 Mon Sep 17 00:00:00 2001 | 1 | From 0ed24f5a2e6e47f5d13896793ab2c6ea89e8c8e6 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju <nmekala@xilinx.com> | 2 | From: Nagaraju <nmekala@xilinx.com> |
| 3 | Date: Thu, 14 Mar 2019 18:11:04 +0530 | 3 | Date: Thu, 14 Mar 2019 18:11:04 +0530 |
| 4 | Subject: [PATCH 43/53] Fix the MB-64 bug of handling QI objects | 4 | Subject: [PATCH 43/53] Fix the MB-64 bug of handling QI objects |
| @@ -8,7 +8,7 @@ Subject: [PATCH 43/53] Fix the MB-64 bug of handling QI objects | |||
| 8 | 1 file changed, 7 insertions(+), 7 deletions(-) | 8 | 1 file changed, 7 insertions(+), 7 deletions(-) |
| 9 | 9 | ||
| 10 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 10 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 11 | index 74be0728e75..fed6f5e0234 100644 | 11 | index f509bd5e665..27436c0f660 100644 |
| 12 | --- a/gcc/config/microblaze/microblaze.md | 12 | --- a/gcc/config/microblaze/microblaze.md |
| 13 | +++ b/gcc/config/microblaze/microblaze.md | 13 | +++ b/gcc/config/microblaze/microblaze.md |
| 14 | @@ -2345,11 +2345,11 @@ else | 14 | @@ -2345,11 +2345,11 @@ else |
| @@ -43,5 +43,5 @@ index 74be0728e75..fed6f5e0234 100644 | |||
| 43 | "TARGET_MB_64" | 43 | "TARGET_MB_64" |
| 44 | { | 44 | { |
| 45 | -- | 45 | -- |
| 46 | 2.17.1 | 46 | 2.37.1 (Apple Git-137.1) |
| 47 | 47 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0044-Patch-Microblaze-We-will-check-the-possibility-of-pe.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0044-Patch-Microblaze-We-will-check-the-possibility-of-pe.patch index 43c13b31..e0d7df3d 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0044-Patch-Microblaze-We-will-check-the-possibility-of-pe.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0044-Patch-Microblaze-We-will-check-the-possibility-of-pe.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From b26f11b38406605f1601626f9ee8267f85b4857c Mon Sep 17 00:00:00 2001 | 1 | From e8286e00f939486dde52e9475bc9cca0aa025a42 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Fri, 29 Mar 2019 12:08:39 +0530 | 3 | Date: Fri, 29 Mar 2019 12:08:39 +0530 |
| 4 | Subject: [PATCH 44/53] [Patch,Microblaze] : We will check the possibility of | 4 | Subject: [PATCH 44/53] [Patch,Microblaze] : We will check the possibility of |
| @@ -9,7 +9,7 @@ Subject: [PATCH 44/53] [Patch,Microblaze] : We will check the possibility of | |||
| 9 | 1 file changed, 38 insertions(+), 25 deletions(-) | 9 | 1 file changed, 38 insertions(+), 25 deletions(-) |
| 10 | 10 | ||
| 11 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 11 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 12 | index fed6f5e0234..1490a522a4c 100644 | 12 | index 27436c0f660..4b9acddb1f1 100644 |
| 13 | --- a/gcc/config/microblaze/microblaze.md | 13 | --- a/gcc/config/microblaze/microblaze.md |
| 14 | +++ b/gcc/config/microblaze/microblaze.md | 14 | +++ b/gcc/config/microblaze/microblaze.md |
| 15 | @@ -882,31 +882,44 @@ | 15 | @@ -882,31 +882,44 @@ |
| @@ -83,5 +83,5 @@ index fed6f5e0234..1490a522a4c 100644 | |||
| 83 | ;;---------------------------------------------------------------- | 83 | ;;---------------------------------------------------------------- |
| 84 | ;; Negation and one's complement | 84 | ;; Negation and one's complement |
| 85 | -- | 85 | -- |
| 86 | 2.17.1 | 86 | 2.37.1 (Apple Git-137.1) |
| 87 | 87 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0045-Patch-MicroBlaze-fixed-typos-in-mul-div-and-mod-asse.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0045-Patch-MicroBlaze-fixed-typos-in-mul-div-and-mod-asse.patch index 3edef57a..770d0f70 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0045-Patch-MicroBlaze-fixed-typos-in-mul-div-and-mod-asse.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0045-Patch-MicroBlaze-fixed-typos-in-mul-div-and-mod-asse.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From db8016ae6874865f57c6841ecabf9d9cdf785ece Mon Sep 17 00:00:00 2001 | 1 | From 29c33e35373d7dc52e43162dce38a3ec0e350db3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Wed, 17 Apr 2019 12:36:16 +0530 | 3 | Date: Wed, 17 Apr 2019 12:36:16 +0530 |
| 4 | Subject: [PATCH 45/53] [Patch,MicroBlaze]: fixed typos in mul,div and mod | 4 | Subject: [PATCH 45/53] [Patch,MicroBlaze]: fixed typos in mul,div and mod |
| @@ -13,7 +13,7 @@ Subject: [PATCH 45/53] [Patch,MicroBlaze]: fixed typos in mul,div and mod | |||
| 13 | 5 files changed, 212 insertions(+), 20 deletions(-) | 13 | 5 files changed, 212 insertions(+), 20 deletions(-) |
| 14 | 14 | ||
| 15 | diff --git a/libgcc/config/microblaze/divsi3.S b/libgcc/config/microblaze/divsi3.S | 15 | diff --git a/libgcc/config/microblaze/divsi3.S b/libgcc/config/microblaze/divsi3.S |
| 16 | index 3a7fc4d6122..0fd275c8702 100644 | 16 | index b464deed481..ceeed6be1f4 100644 |
| 17 | --- a/libgcc/config/microblaze/divsi3.S | 17 | --- a/libgcc/config/microblaze/divsi3.S |
| 18 | +++ b/libgcc/config/microblaze/divsi3.S | 18 | +++ b/libgcc/config/microblaze/divsi3.S |
| 19 | @@ -46,7 +46,7 @@ | 19 | @@ -46,7 +46,7 @@ |
| @@ -107,7 +107,7 @@ index 3a7fc4d6122..0fd275c8702 100644 | |||
| 107 | $LaDiv_By_Zero: | 107 | $LaDiv_By_Zero: |
| 108 | $LaResult_Is_Zero: | 108 | $LaResult_Is_Zero: |
| 109 | diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S | 109 | diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S |
| 110 | index c98442c01c2..28775d71ba0 100644 | 110 | index 3ec17685e51..637b06c09a3 100644 |
| 111 | --- a/libgcc/config/microblaze/modsi3.S | 111 | --- a/libgcc/config/microblaze/modsi3.S |
| 112 | +++ b/libgcc/config/microblaze/modsi3.S | 112 | +++ b/libgcc/config/microblaze/modsi3.S |
| 113 | @@ -62,40 +62,72 @@ __modsi3: | 113 | @@ -62,40 +62,72 @@ __modsi3: |
| @@ -196,7 +196,7 @@ index c98442c01c2..28775d71ba0 100644 | |||
| 196 | nop | 196 | nop |
| 197 | #else | 197 | #else |
| 198 | diff --git a/libgcc/config/microblaze/mulsi3.S b/libgcc/config/microblaze/mulsi3.S | 198 | diff --git a/libgcc/config/microblaze/mulsi3.S b/libgcc/config/microblaze/mulsi3.S |
| 199 | index 0329fa3037a..7557368bc1c 100644 | 199 | index 657668ef826..6be75dc95e8 100644 |
| 200 | --- a/libgcc/config/microblaze/mulsi3.S | 200 | --- a/libgcc/config/microblaze/mulsi3.S |
| 201 | +++ b/libgcc/config/microblaze/mulsi3.S | 201 | +++ b/libgcc/config/microblaze/mulsi3.S |
| 202 | @@ -43,7 +43,37 @@ | 202 | @@ -43,7 +43,37 @@ |
| @@ -246,7 +246,7 @@ index 0329fa3037a..7557368bc1c 100644 | |||
| 246 | .end __mulsi3 | 246 | .end __mulsi3 |
| 247 | .size __mulsi3, . - __mulsi3 | 247 | .size __mulsi3, . - __mulsi3 |
| 248 | diff --git a/libgcc/config/microblaze/udivsi3.S b/libgcc/config/microblaze/udivsi3.S | 248 | diff --git a/libgcc/config/microblaze/udivsi3.S b/libgcc/config/microblaze/udivsi3.S |
| 249 | index 7bdcd8873e5..feff14664fb 100644 | 249 | index fc6a4b5a248..f8ce88bd8b7 100644 |
| 250 | --- a/libgcc/config/microblaze/udivsi3.S | 250 | --- a/libgcc/config/microblaze/udivsi3.S |
| 251 | +++ b/libgcc/config/microblaze/udivsi3.S | 251 | +++ b/libgcc/config/microblaze/udivsi3.S |
| 252 | @@ -59,52 +59,96 @@ __udivsi3: | 252 | @@ -59,52 +59,96 @@ __udivsi3: |
| @@ -360,7 +360,7 @@ index 7bdcd8873e5..feff14664fb 100644 | |||
| 360 | NOP | 360 | NOP |
| 361 | #else | 361 | #else |
| 362 | diff --git a/libgcc/config/microblaze/umodsi3.S b/libgcc/config/microblaze/umodsi3.S | 362 | diff --git a/libgcc/config/microblaze/umodsi3.S b/libgcc/config/microblaze/umodsi3.S |
| 363 | index 63ab1c2a357..f5bbb6f2d10 100644 | 363 | index 03be6df1fc6..3be3658f7a2 100644 |
| 364 | --- a/libgcc/config/microblaze/umodsi3.S | 364 | --- a/libgcc/config/microblaze/umodsi3.S |
| 365 | +++ b/libgcc/config/microblaze/umodsi3.S | 365 | +++ b/libgcc/config/microblaze/umodsi3.S |
| 366 | @@ -46,7 +46,7 @@ | 366 | @@ -46,7 +46,7 @@ |
| @@ -462,5 +462,5 @@ index 63ab1c2a357..f5bbb6f2d10 100644 | |||
| 462 | $LaRETURN_HERE: | 462 | $LaRETURN_HERE: |
| 463 | # Restore values of CSRs and that of r3 and the divisor and the dividend | 463 | # Restore values of CSRs and that of r3 and the divisor and the dividend |
| 464 | -- | 464 | -- |
| 465 | 2.17.1 | 465 | 2.37.1 (Apple Git-137.1) |
| 466 | 466 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0046-Author-Nagaraju-nmekala-xilinx.com.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0046-Patch-microblaze-MB-64-removal-of-barrel-shift-instr.patch index abe08e56..29a7b4eb 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0046-Author-Nagaraju-nmekala-xilinx.com.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0046-Patch-microblaze-MB-64-removal-of-barrel-shift-instr.patch | |||
| @@ -1,25 +1,23 @@ | |||
| 1 | From 45fcd0217edf07fcb6473812cfc4ccacc8e95aac Mon Sep 17 00:00:00 2001 | 1 | From 39589348962a2e0453ad49118b6bc3dd8a7b1bb5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju <nmekala@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Thu, 18 Apr 2019 16:00:37 +0530 | 3 | Date: Tue, 13 Sep 2022 15:59:12 +0530 |
| 4 | Subject: [PATCH 46/53] Author: Nagaraju <nmekala@xilinx.com> Date: Wed Apr | 4 | Subject: [PATCH 46/53] [Patch, microblaze]: MB-64 removal of barrel-shift |
| 5 | 17 14:11:00 2019 +0530 | 5 | instructions from default By default MB-64 is generatting |
| 6 | barrel-shift instructions. It has been removed from default. | ||
| 7 | Barrel-shift instructions will be generated only if barrel-shifter is | ||
| 8 | enabled. Similarly to double instructions as well. | ||
| 6 | 9 | ||
| 7 | [Patch, microblaze]: MB-64 removal of barrel-shift instructions from default | 10 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> |
| 8 | By default MB-64 is generatting barrel-shift instructions. It has been | ||
| 9 | removed from default. Barrel-shift instructions will be generated only if | ||
| 10 | barrel-shifter is enabled. Similarly to double instructions as well. | ||
| 11 | |||
| 12 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> | ||
| 13 | --- | 11 | --- |
| 14 | gcc/config/microblaze/microblaze.cc | 2 +- | 12 | gcc/config/microblaze/microblaze.cc | 2 +- |
| 15 | gcc/config/microblaze/microblaze.md | 269 ++++++++++++++++++++++++++-- | 13 | gcc/config/microblaze/microblaze.md | 269 ++++++++++++++++++++++++++-- |
| 16 | 2 files changed, 252 insertions(+), 19 deletions(-) | 14 | 2 files changed, 252 insertions(+), 19 deletions(-) |
| 17 | 15 | ||
| 18 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc | 16 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 19 | index b2cd89a310a..d1257032bfb 100644 | 17 | index 7a08390a027..3ee3996a38d 100644 |
| 20 | --- a/gcc/config/microblaze/microblaze.cc | 18 | --- a/gcc/config/microblaze/microblaze.cc |
| 21 | +++ b/gcc/config/microblaze/microblaze.cc | 19 | +++ b/gcc/config/microblaze/microblaze.cc |
| 22 | @@ -3870,7 +3870,7 @@ microblaze_expand_divide (rtx operands[]) | 20 | @@ -3871,7 +3871,7 @@ microblaze_expand_divide (rtx operands[]) |
| 23 | emit_insn (gen_rtx_CLOBBER (Pmode, reg18)); | 21 | emit_insn (gen_rtx_CLOBBER (Pmode, reg18)); |
| 24 | 22 | ||
| 25 | if (TARGET_MB_64) { | 23 | if (TARGET_MB_64) { |
| @@ -29,7 +27,7 @@ index b2cd89a310a..d1257032bfb 100644 | |||
| 29 | } | 27 | } |
| 30 | else { | 28 | else { |
| 31 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 29 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 32 | index 1490a522a4c..40328b0d39d 100644 | 30 | index 4b9acddb1f1..3695e9e101d 100644 |
| 33 | --- a/gcc/config/microblaze/microblaze.md | 31 | --- a/gcc/config/microblaze/microblaze.md |
| 34 | +++ b/gcc/config/microblaze/microblaze.md | 32 | +++ b/gcc/config/microblaze/microblaze.md |
| 35 | @@ -547,7 +547,7 @@ | 33 | @@ -547,7 +547,7 @@ |
| @@ -475,5 +473,5 @@ index 1490a522a4c..40328b0d39d 100644 | |||
| 475 | [(set_attr "type" "arith") | 473 | [(set_attr "type" "arith") |
| 476 | (set_attr "mode" "DI") | 474 | (set_attr "mode" "DI") |
| 477 | -- | 475 | -- |
| 478 | 2.17.1 | 476 | 2.37.1 (Apple Git-137.1) |
| 479 | 477 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0047-Added-new-MB-64-single-register-arithmetic-instructi.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0047-Added-new-MB-64-single-register-arithmetic-instructi.patch index 98183053..774fad5a 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0047-Added-new-MB-64-single-register-arithmetic-instructi.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0047-Added-new-MB-64-single-register-arithmetic-instructi.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 688fcf782b7eca82cb2e2ab6589dee843983a5d6 Mon Sep 17 00:00:00 2001 | 1 | From e32334b0f8a4c9532975001ffab33e86469ea4e1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju <nmekala@xilinx.com> | 2 | From: Nagaraju <nmekala@xilinx.com> |
| 3 | Date: Fri, 23 Aug 2019 16:16:53 +0530 | 3 | Date: Fri, 23 Aug 2019 16:16:53 +0530 |
| 4 | Subject: [PATCH 47/53] Added new MB-64 single register arithmetic instructions | 4 | Subject: [PATCH 47/53] Added new MB-64 single register arithmetic instructions |
| @@ -8,7 +8,7 @@ Subject: [PATCH 47/53] Added new MB-64 single register arithmetic instructions | |||
| 8 | 1 file changed, 56 insertions(+) | 8 | 1 file changed, 56 insertions(+) |
| 9 | 9 | ||
| 10 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 10 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 11 | index 40328b0d39d..6bd042747bf 100644 | 11 | index 3695e9e101d..85c1ab45994 100644 |
| 12 | --- a/gcc/config/microblaze/microblaze.md | 12 | --- a/gcc/config/microblaze/microblaze.md |
| 13 | +++ b/gcc/config/microblaze/microblaze.md | 13 | +++ b/gcc/config/microblaze/microblaze.md |
| 14 | @@ -654,6 +654,18 @@ | 14 | @@ -654,6 +654,18 @@ |
| @@ -103,5 +103,5 @@ index 40328b0d39d..6bd042747bf 100644 | |||
| 103 | [(set (match_operand:DI 0 "register_operand" "=d,d") | 103 | [(set (match_operand:DI 0 "register_operand" "=d,d") |
| 104 | (xor:DI (match_operand:DI 1 "arith_operand" "%d,d") | 104 | (xor:DI (match_operand:DI 1 "arith_operand" "%d,d") |
| 105 | -- | 105 | -- |
| 106 | 2.17.1 | 106 | 2.37.1 (Apple Git-137.1) |
| 107 | 107 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0048-Patch-MicroBlaze-Added-support-for-64-bit-Immediate-.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0048-Patch-MicroBlaze-Added-support-for-64-bit-Immediate-.patch index 29291154..a442bf0f 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0048-Patch-MicroBlaze-Added-support-for-64-bit-Immediate-.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0048-Patch-MicroBlaze-Added-support-for-64-bit-Immediate-.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 9098a760a10f09fefbdf438daf63b9e36576c9b2 Mon Sep 17 00:00:00 2001 | 1 | From f5f262b196de197b7e9ece8cc08c8715f953857f Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Mon, 26 Aug 2019 15:55:22 +0530 | 3 | Date: Mon, 26 Aug 2019 15:55:22 +0530 |
| 4 | Subject: [PATCH 48/53] [Patch,MicroBlaze] : Added support for 64 bit Immediate | 4 | Subject: [PATCH 48/53] [Patch,MicroBlaze] : Added support for 64 bit Immediate |
| @@ -10,7 +10,7 @@ Subject: [PATCH 48/53] [Patch,MicroBlaze] : Added support for 64 bit Immediate | |||
| 10 | 2 files changed, 3 insertions(+), 4 deletions(-) | 10 | 2 files changed, 3 insertions(+), 4 deletions(-) |
| 11 | 11 | ||
| 12 | diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md | 12 | diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md |
| 13 | index e3f89491fb4..ef3001764c0 100644 | 13 | index 3f9805dfe0a..91653f36f52 100644 |
| 14 | --- a/gcc/config/microblaze/constraints.md | 14 | --- a/gcc/config/microblaze/constraints.md |
| 15 | +++ b/gcc/config/microblaze/constraints.md | 15 | +++ b/gcc/config/microblaze/constraints.md |
| 16 | @@ -53,9 +53,9 @@ | 16 | @@ -53,9 +53,9 @@ |
| @@ -26,7 +26,7 @@ index e3f89491fb4..ef3001764c0 100644 | |||
| 26 | 26 | ||
| 27 | ;; Define floating point constraints | 27 | ;; Define floating point constraints |
| 28 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 28 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 29 | index 6bd042747bf..b89a4276c7c 100644 | 29 | index 85c1ab45994..0ac6e1480e6 100644 |
| 30 | --- a/gcc/config/microblaze/microblaze.md | 30 | --- a/gcc/config/microblaze/microblaze.md |
| 31 | +++ b/gcc/config/microblaze/microblaze.md | 31 | +++ b/gcc/config/microblaze/microblaze.md |
| 32 | @@ -1332,8 +1332,7 @@ | 32 | @@ -1332,8 +1332,7 @@ |
| @@ -40,5 +40,5 @@ index 6bd042747bf..b89a4276c7c 100644 | |||
| 40 | addlk\t%0,r0,r0\t | 40 | addlk\t%0,r0,r0\t |
| 41 | addlik\t%0,r0,%1\t #N1 %X1 | 41 | addlik\t%0,r0,%1\t #N1 %X1 |
| 42 | -- | 42 | -- |
| 43 | 2.17.1 | 43 | 2.37.1 (Apple Git-137.1) |
| 44 | 44 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0049-Patch-microblaze-Fix-Compiler-crash-with-freg-struct.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0049-Patch-microblaze-Fix-Compiler-crash-with-freg-struct.patch index d3cab66f..5732000d 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0049-Patch-microblaze-Fix-Compiler-crash-with-freg-struct.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0049-Patch-microblaze-Fix-Compiler-crash-with-freg-struct.patch | |||
| @@ -1,32 +1,22 @@ | |||
| 1 | From 2673e0dc2d75769c7cc36ca94e4e07caa28b8ef7 Mon Sep 17 00:00:00 2001 | 1 | From d45405d05a1f9079f7db86ba60dcd30d358613d4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju <nmekala@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Thu, 9 Jan 2020 12:30:41 +0530 | 3 | Date: Tue, 13 Sep 2022 16:06:10 +0530 |
| 4 | Subject: [PATCH 49/53] [Patch, microblaze]: Fix Compiler crash with | 4 | Subject: [PATCH 49/53] [Patch, microblaze]: Fix Compiler crash with |
| 5 | -freg-struct-return This patch fixes a bug in MB GCC regarding the passing | 5 | -freg-struct-return This patch fixes a bug in MB GCC regarding the |
| 6 | struct values in registers. Currently we are only handling SImode With this | 6 | passing struct values in registers. Currently we are only handling SImode |
| 7 | patch all other modes are handled properly | 7 | With this patch all other modes are handled properly |
| 8 | 8 | ||
| 9 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> | 9 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> |
| 10 | |||
| 11 | ChangeLog: | ||
| 12 | 2020-01-09 Nagaraju Mekala <nmekala@xilix.com> | ||
| 13 | |||
| 14 | * gcc/config/microblaze/microblaze.h | ||
| 15 | (LIBCALL_Value): Remove macro | ||
| 16 | (PROMOTE_MODE): Remove macro | ||
| 17 | * gcc/config/microblaze/microblaze.cc | ||
| 18 | (TARGET_LIBCALL_Value): Added new macro | ||
| 19 | (microblaze_function_value): Updated the return Value | ||
| 20 | --- | 10 | --- |
| 21 | gcc/config/microblaze/microblaze.cc | 11 ++++++++++- | 11 | gcc/config/microblaze/microblaze.cc | 11 ++++++++++- |
| 22 | gcc/config/microblaze/microblaze.h | 19 ------------------- | 12 | gcc/config/microblaze/microblaze.h | 19 ------------------- |
| 23 | 2 files changed, 10 insertions(+), 20 deletions(-) | 13 | 2 files changed, 10 insertions(+), 20 deletions(-) |
| 24 | 14 | ||
| 25 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc | 15 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 26 | index d1257032bfb..5afac2ba8d1 100644 | 16 | index 3ee3996a38d..4668a81d060 100644 |
| 27 | --- a/gcc/config/microblaze/microblaze.cc | 17 | --- a/gcc/config/microblaze/microblaze.cc |
| 28 | +++ b/gcc/config/microblaze/microblaze.cc | 18 | +++ b/gcc/config/microblaze/microblaze.cc |
| 29 | @@ -3908,7 +3908,16 @@ microblaze_function_value (const_tree valtype, | 19 | @@ -3909,7 +3909,16 @@ microblaze_function_value (const_tree valtype, |
| 30 | const_tree func ATTRIBUTE_UNUSED, | 20 | const_tree func ATTRIBUTE_UNUSED, |
| 31 | bool outgoing ATTRIBUTE_UNUSED) | 21 | bool outgoing ATTRIBUTE_UNUSED) |
| 32 | { | 22 | { |
| @@ -45,7 +35,7 @@ index d1257032bfb..5afac2ba8d1 100644 | |||
| 45 | 35 | ||
| 46 | /* Implement TARGET_SCHED_ADJUST_COST. */ | 36 | /* Implement TARGET_SCHED_ADJUST_COST. */ |
| 47 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h | 37 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h |
| 48 | index c6c3a9baa5a..2581d52d17a 100644 | 38 | index c48b6de0d58..730ad87b13b 100644 |
| 49 | --- a/gcc/config/microblaze/microblaze.h | 39 | --- a/gcc/config/microblaze/microblaze.h |
| 50 | +++ b/gcc/config/microblaze/microblaze.h | 40 | +++ b/gcc/config/microblaze/microblaze.h |
| 51 | @@ -266,13 +266,6 @@ extern enum pipeline_type microblaze_pipe; | 41 | @@ -266,13 +266,6 @@ extern enum pipeline_type microblaze_pipe; |
| @@ -82,5 +72,5 @@ index c6c3a9baa5a..2581d52d17a 100644 | |||
| 82 | On the MicroBlaze, R2 R3 are the only register thus used. | 72 | On the MicroBlaze, R2 R3 are the only register thus used. |
| 83 | Currently, R2 are only implemented here (C has no complex type) */ | 73 | Currently, R2 are only implemented here (C has no complex type) */ |
| 84 | -- | 74 | -- |
| 85 | 2.17.1 | 75 | 2.37.1 (Apple Git-137.1) |
| 86 | 76 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch index bcd941da..ed48daf7 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 009fc9cbb72f50ac73b7f58153d0d90db46b48b8 Mon Sep 17 00:00:00 2001 | 1 | From a64afc59e82703f40d04d4d7126038811a195467 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju <nmekala@xilinx.com> | 2 | From: Nagaraju <nmekala@xilinx.com> |
| 3 | Date: Wed, 8 May 2019 14:12:03 +0530 | 3 | Date: Wed, 8 May 2019 14:12:03 +0530 |
| 4 | Subject: [PATCH 50/53] [Patch, microblaze]: Add TARGET_OPTION_OPTIMIZATION and | 4 | Subject: [PATCH 50/53] [Patch, microblaze]: Add TARGET_OPTION_OPTIMIZATION and |
| @@ -6,40 +6,45 @@ Subject: [PATCH 50/53] [Patch, microblaze]: Add TARGET_OPTION_OPTIMIZATION and | |||
| 6 | 6 | ||
| 7 | Added TARGET_OPTION_OPTIMIZATIONS and Turn off ivopts by default. | 7 | Added TARGET_OPTION_OPTIMIZATIONS and Turn off ivopts by default. |
| 8 | 8 | ||
| 9 | * gcc/common/config/microblaze/microblaze-common.cc | 9 | * gcc/common/config/microblaze/microblaze-common.c |
| 10 | (microblaze_option_optimization_table): Disable fivopts by default. | 10 | (microblaze_option_optimization_table): Disable fivopts by default. |
| 11 | 11 | ||
| 12 | Signed-off-by: Nagaraju Mekala <nmekala@xilinx.com> | 12 | Signed-off-by: Nagaraju Mekala <nmekala@xilinx.com> |
| 13 | Mahesh Bodapati <mbodapat@xilinx.com> | ||
| 14 | Conflicts: | ||
| 15 | gcc/common/config/microblaze/microblaze-common.c | ||
| 13 | 16 | ||
| 14 | Conflicts: | 17 | Conflicts: |
| 15 | gcc/common/config/microblaze/microblaze-common.cc | 18 | gcc/common/config/microblaze/microblaze-common.c |
| 16 | --- | 19 | --- |
| 17 | gcc/common/config/microblaze/microblaze-common.cc | 11 +++++++++++ | 20 | gcc/common/config/microblaze/microblaze-common.cc | 13 +++++++++++++ |
| 18 | 1 file changed, 11 insertions(+) | 21 | 1 file changed, 13 insertions(+) |
| 19 | 22 | ||
| 20 | diff --git a/gcc/common/config/microblaze/microblaze-common.cc b/gcc/common/config/microblaze/microblaze-common.cc | 23 | diff --git a/gcc/common/config/microblaze/microblaze-common.cc b/gcc/common/config/microblaze/microblaze-common.cc |
| 21 | index 1e4abb34027..d3a74fcc99e 100644 | 24 | index 21b35f55b92..137332ded25 100644 |
| 22 | --- a/gcc/common/config/microblaze/microblaze-common.cc | 25 | --- a/gcc/common/config/microblaze/microblaze-common.cc |
| 23 | +++ b/gcc/common/config/microblaze/microblaze-common.cc | 26 | +++ b/gcc/common/config/microblaze/microblaze-common.cc |
| 24 | @@ -24,7 +24,18 @@ | 27 | @@ -24,7 +24,20 @@ |
| 25 | #include "common/common-target.h" | 28 | #include "common/common-target.h" |
| 26 | #include "common/common-target-def.h" | 29 | #include "common/common-target-def.h" |
| 27 | 30 | ||
| 28 | +/* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */ | 31 | +/* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */ |
| 29 | +static const struct default_options microblaze_option_optimization_table[] = | 32 | +static const struct default_options microblaze_option_optimization_table[] = |
| 30 | + { | 33 | + { |
| 31 | + /* Turn off ivopts by default. It messes up cse. | 34 | + /* Turn off ivopts by default. It messes up cse. |
| 32 | + { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, */ | 35 | + { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, */ |
| 33 | + { OPT_LEVELS_ALL, OPT_fivopts, NULL, 0 }, | 36 | + { OPT_LEVELS_ALL, OPT_fivopts, NULL, 0 }, |
| 34 | + { OPT_LEVELS_NONE, 0, NULL, 0 } | 37 | + { OPT_LEVELS_NONE, 0, NULL, 0 } |
| 35 | + }; | 38 | + }; |
| 36 | + | 39 | + |
| 40 | + | ||
| 37 | #undef TARGET_DEFAULT_TARGET_FLAGS | 41 | #undef TARGET_DEFAULT_TARGET_FLAGS |
| 38 | #define TARGET_DEFAULT_TARGET_FLAGS TARGET_DEFAULT | 42 | #define TARGET_DEFAULT_TARGET_FLAGS TARGET_DEFAULT |
| 39 | 43 | ||
| 40 | +#undef TARGET_OPTION_OPTIMIZATION_TABLE | 44 | +#undef TARGET_OPTION_OPTIMIZATION_TABLE |
| 41 | +#define TARGET_OPTION_OPTIMIZATION_TABLE microblaze_option_optimization_table | 45 | +#define TARGET_OPTION_OPTIMIZATION_TABLE microblaze_option_optimization_table |
| 46 | + | ||
| 42 | struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER; | 47 | struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER; |
| 43 | -- | 48 | -- |
| 44 | 2.17.1 | 49 | 2.37.1 (Apple Git-137.1) |
| 45 | 50 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch index fbc51bc8..b9575eac 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch | |||
| @@ -1,24 +1,24 @@ | |||
| 1 | From f52258e89f2ea416f418b6c55fef15552a081e18 Mon Sep 17 00:00:00 2001 | 1 | From 09e10c513f8970f4d2402244b7ac69ecd33b4c04 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 24 Nov 2020 12:26:32 +0530 | 3 | Date: Tue, 13 Sep 2022 16:35:00 +0530 |
| 4 | Subject: [PATCH 51/53] [Patch, microblaze]: Reducing Stack space for arguments | 4 | Subject: [PATCH 51/53] [Patch, microblaze]: Reducing Stack space for arguments |
| 5 | 5 | ||
| 6 | Currently in Microblaze target stack space for arguments in register is being | 6 | Currently in Microblaze target stack space for arguments in register is being |
| 7 | allocated even if there are no arguments in the function. | 7 | allocated even if there are no arguments in the function. |
| 8 | This patch will optimize the extra 24 bytes that are being allocated. | 8 | This patch will optimize the extra 24 bytes that are being allocated. |
| 9 | 9 | ||
| 10 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> | 10 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> |
| 11 | :Ajit Agarwal <ajitkum@xilinx.com> | 11 | :Ajit Agarwal <ajitkum@xilinx.com> |
| 12 | --- | 12 | --- |
| 13 | gcc/config/microblaze/microblaze-protos.h | 1 + | 13 | gcc/config/microblaze/microblaze-protos.h | 1 + |
| 14 | gcc/config/microblaze/microblaze.cc | 132 +++++++++++++++++++++- | 14 | gcc/config/microblaze/microblaze.cc | 130 ++++++++++++++++++++++ |
| 15 | gcc/config/microblaze/microblaze.h | 4 +- | 15 | gcc/config/microblaze/microblaze.h | 4 +- |
| 16 | 3 files changed, 134 insertions(+), 3 deletions(-) | 16 | 3 files changed, 133 insertions(+), 2 deletions(-) |
| 17 | 17 | ||
| 18 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze-protos.h | 18 | diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h |
| 19 | =================================================================== | 19 | index 7f575c2adec..bd594699940 100644 |
| 20 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze-protos.h | 20 | --- a/gcc/config/microblaze/microblaze-protos.h |
| 21 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze-protos.h | 21 | +++ b/gcc/config/microblaze/microblaze-protos.h |
| 22 | @@ -60,6 +60,7 @@ extern int symbol_mentioned_p (rtx); | 22 | @@ -60,6 +60,7 @@ extern int symbol_mentioned_p (rtx); |
| 23 | extern int label_mentioned_p (rtx); | 23 | extern int label_mentioned_p (rtx); |
| 24 | extern bool microblaze_cannot_force_const_mem (machine_mode, rtx); | 24 | extern bool microblaze_cannot_force_const_mem (machine_mode, rtx); |
| @@ -27,11 +27,11 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze-protos.h | |||
| 27 | #endif /* RTX_CODE */ | 27 | #endif /* RTX_CODE */ |
| 28 | 28 | ||
| 29 | /* Declare functions in microblaze-c.cc. */ | 29 | /* Declare functions in microblaze-c.cc. */ |
| 30 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | 30 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 31 | =================================================================== | 31 | index 4668a81d060..24ac215b6d5 100644 |
| 32 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.cc | 32 | --- a/gcc/config/microblaze/microblaze.cc |
| 33 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.cc | 33 | +++ b/gcc/config/microblaze/microblaze.cc |
| 34 | @@ -2081,6 +2081,136 @@ microblaze_must_save_register (int regno | 34 | @@ -2081,6 +2081,136 @@ microblaze_must_save_register (int regno) |
| 35 | return 0; | 35 | return 0; |
| 36 | } | 36 | } |
| 37 | 37 | ||
| @@ -168,11 +168,11 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc | |||
| 168 | /* Return the bytes needed to compute the frame pointer from the current | 168 | /* Return the bytes needed to compute the frame pointer from the current |
| 169 | stack pointer. | 169 | stack pointer. |
| 170 | 170 | ||
| 171 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | 171 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h |
| 172 | =================================================================== | 172 | index 730ad87b13b..dfacd080b6d 100644 |
| 173 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.h | 173 | --- a/gcc/config/microblaze/microblaze.h |
| 174 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.h | 174 | +++ b/gcc/config/microblaze/microblaze.h |
| 175 | @@ -447,9 +447,9 @@ extern struct microblaze_frame_info curr | 175 | @@ -447,9 +447,9 @@ extern struct microblaze_frame_info current_frame_info; |
| 176 | #define ARG_POINTER_CFA_OFFSET(FNDECL) 0 | 176 | #define ARG_POINTER_CFA_OFFSET(FNDECL) 0 |
| 177 | #define DWARF_CIE_DATA_ALIGNMENT -1 | 177 | #define DWARF_CIE_DATA_ALIGNMENT -1 |
| 178 | 178 | ||
| @@ -184,3 +184,6 @@ Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h | |||
| 184 | 184 | ||
| 185 | #define STACK_BOUNDARY (TARGET_MB_64 ? 64 : 32) | 185 | #define STACK_BOUNDARY (TARGET_MB_64 ? 64 : 32) |
| 186 | 186 | ||
| 187 | -- | ||
| 188 | 2.37.1 (Apple Git-137.1) | ||
| 189 | |||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0052-Patch-MicroBlaze.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0052-Patch-MicroBlaze.patch index 76004f15..d504a092 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0052-Patch-MicroBlaze.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0052-Patch-MicroBlaze.patch | |||
| @@ -1,21 +1,22 @@ | |||
| 1 | From b0ea0d18d1b353421ef7e18d496fd505cb1d5f7d Mon Sep 17 00:00:00 2001 | 1 | From fe2781d189493dc82a3714b48bbc12c6bd5cdfd0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Wed, 28 Apr 2021 16:49:18 +0530 | 3 | Date: Tue, 13 Sep 2022 16:38:43 +0530 |
| 4 | Subject: [PATCH 52/53] [Patch,MicroBlaze] : If we use break_handler attribute | 4 | Subject: [PATCH 52/53] [Patch,MicroBlaze] : If we use break_handler |
| 5 | then interrupt vector call happened to break_handler instead of | 5 | attribute then interrupt vector call happened to break_handler instead of |
| 6 | interrupt_handler. this fix will resolve the issue CR-1081780 This fix will | 6 | interrupt_handler. this fix will resolve the issue CR-1081780. This |
| 7 | not change the behavior of compiler unless there is a usage of break_handler | 7 | fix will not change the behavior of compiler unless there is a usage of |
| 8 | attribute. | 8 | break_handler attribute. signed-off-by : Mahesh Bodapati |
| 9 | <mbodapat@xilinx.com> | ||
| 9 | 10 | ||
| 10 | --- | 11 | --- |
| 11 | gcc/config/microblaze/microblaze.cc | 13 +++++-------- | 12 | gcc/config/microblaze/microblaze.cc | 13 +++++-------- |
| 12 | 1 file changed, 5 insertions(+), 8 deletions(-) | 13 | 1 file changed, 5 insertions(+), 8 deletions(-) |
| 13 | 14 | ||
| 14 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc | 15 | diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc |
| 15 | index 6914eb8380c..d0546a164d7 100644 | 16 | index 24ac215b6d5..66d62f6f909 100644 |
| 16 | --- a/gcc/config/microblaze/microblaze.cc | 17 | --- a/gcc/config/microblaze/microblaze.cc |
| 17 | +++ b/gcc/config/microblaze/microblaze.cc | 18 | +++ b/gcc/config/microblaze/microblaze.cc |
| 18 | @@ -2019,7 +2019,7 @@ microblaze_save_volatiles (tree func) | 19 | @@ -2020,7 +2020,7 @@ microblaze_save_volatiles (tree func) |
| 19 | int | 20 | int |
| 20 | microblaze_is_interrupt_variant (void) | 21 | microblaze_is_interrupt_variant (void) |
| 21 | { | 22 | { |
| @@ -24,7 +25,7 @@ index 6914eb8380c..d0546a164d7 100644 | |||
| 24 | } | 25 | } |
| 25 | int | 26 | int |
| 26 | microblaze_is_break_handler (void) | 27 | microblaze_is_break_handler (void) |
| 27 | @@ -2058,7 +2058,7 @@ microblaze_must_save_register (int regno) | 28 | @@ -2059,7 +2059,7 @@ microblaze_must_save_register (int regno) |
| 28 | { | 29 | { |
| 29 | if (df_regs_ever_live_p (regno) | 30 | if (df_regs_ever_live_p (regno) |
| 30 | || regno == MB_ABI_MSR_SAVE_REG | 31 | || regno == MB_ABI_MSR_SAVE_REG |
| @@ -33,7 +34,7 @@ index 6914eb8380c..d0546a164d7 100644 | |||
| 33 | && (regno == MB_ABI_ASM_TEMP_REGNUM | 34 | && (regno == MB_ABI_ASM_TEMP_REGNUM |
| 34 | || regno == MB_ABI_EXCEPTION_RETURN_ADDR_REGNUM))) | 35 | || regno == MB_ABI_EXCEPTION_RETURN_ADDR_REGNUM))) |
| 35 | return 1; | 36 | return 1; |
| 36 | @@ -2274,9 +2274,6 @@ compute_frame_size (HOST_WIDE_INT size) | 37 | @@ -2275,9 +2275,6 @@ compute_frame_size (HOST_WIDE_INT size) |
| 37 | fast_interrupt = | 38 | fast_interrupt = |
| 38 | microblaze_fast_interrupt_function_p (current_function_decl); | 39 | microblaze_fast_interrupt_function_p (current_function_decl); |
| 39 | save_volatiles = microblaze_save_volatiles (current_function_decl); | 40 | save_volatiles = microblaze_save_volatiles (current_function_decl); |
| @@ -43,7 +44,7 @@ index 6914eb8380c..d0546a164d7 100644 | |||
| 43 | gp_reg_size = 0; | 44 | gp_reg_size = 0; |
| 44 | mask = 0; | 45 | mask = 0; |
| 45 | var_size = size; | 46 | var_size = size; |
| 46 | @@ -3236,7 +3233,7 @@ microblaze_expand_prologue (void) | 47 | @@ -3237,7 +3234,7 @@ microblaze_expand_prologue (void) |
| 47 | gen_rtx_PLUS (Pmode, stack_pointer_rtx, | 48 | gen_rtx_PLUS (Pmode, stack_pointer_rtx, |
| 48 | const0_rtx)); | 49 | const0_rtx)); |
| 49 | 50 | ||
| @@ -52,7 +53,7 @@ index 6914eb8380c..d0546a164d7 100644 | |||
| 52 | /* Do not optimize in flow analysis. */ | 53 | /* Do not optimize in flow analysis. */ |
| 53 | MEM_VOLATILE_P (mem_rtx) = 1; | 54 | MEM_VOLATILE_P (mem_rtx) = 1; |
| 54 | 55 | ||
| 55 | @@ -3347,12 +3344,12 @@ microblaze_expand_epilogue (void) | 56 | @@ -3348,12 +3345,12 @@ microblaze_expand_epilogue (void) |
| 56 | a load-use stall cycle :) This is also important to handle alloca. | 57 | a load-use stall cycle :) This is also important to handle alloca. |
| 57 | (See comments for if (frame_pointer_needed) below. */ | 58 | (See comments for if (frame_pointer_needed) below. */ |
| 58 | 59 | ||
| @@ -68,5 +69,5 @@ index 6914eb8380c..d0546a164d7 100644 | |||
| 68 | MEM_VOLATILE_P (mem_rtx) = 1; | 69 | MEM_VOLATILE_P (mem_rtx) = 1; |
| 69 | reg_rtx = gen_rtx_REG (Pmode, MB_ABI_SUB_RETURN_ADDR_REGNUM); | 70 | reg_rtx = gen_rtx_REG (Pmode, MB_ABI_SUB_RETURN_ADDR_REGNUM); |
| 70 | -- | 71 | -- |
| 71 | 2.17.1 | 72 | 2.37.1 (Apple Git-137.1) |
| 72 | 73 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0053-patch-microblaze64-Add-Zero_extended-instructions.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0053-patch-microblaze64-Add-Zero_extended-instructions.patch index 76148d15..6b3f4ddd 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0053-patch-microblaze64-Add-Zero_extended-instructions.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0053-patch-microblaze64-Add-Zero_extended-instructions.patch | |||
| @@ -1,21 +1,22 @@ | |||
| 1 | From 7c9402f1dc641a1fe4110e92cd16a33ed4bd35cf Mon Sep 17 00:00:00 2001 | 1 | From 6c2e67237a12cecfd8c0575fd17314d3024943fc Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nmekala@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Mon, 30 Aug 2021 12:13:45 +0530 | 3 | Date: Tue, 13 Sep 2022 16:45:41 +0530 |
| 4 | Subject: [PATCH 53/53] [patch, microblaze64]: Add Zero_extended instructions | 4 | Subject: [PATCH 53/53] [patch, microblaze64]: Add Zero_extended instructions |
| 5 | 5 | ||
| 6 | Due to latest changes in GCC-10.2 MB64 perforamance has reduced | 6 | Due to latest changes in GCC-10.2 MB64 perforamance has reduced |
| 7 | We have added zero_extended instructions to get rid of left shift | 7 | We have added zero_extended instructions to get rid of left shift |
| 8 | and right shift loops | 8 | and right shift loops |
| 9 | 9 | ||
| 10 | [CR/TSR]: TSR-974519 | 10 | [CR/TSR]: TSR-974519 |
| 11 | 11 | ||
| 12 | Signed-off-by: Nagaraju Mekala<nmekala@xilinx.com> | 12 | Signed-off-by: Nagaraju Mekala<nmekala@xilinx.com> |
| 13 | Mahesh Bodapati<mbodapat@xilinx.com> | ||
| 13 | --- | 14 | --- |
| 14 | gcc/config/microblaze/microblaze.md | 27 +++++++++++++++++++++++++++ | 15 | gcc/config/microblaze/microblaze.md | 27 +++++++++++++++++++++++++++ |
| 15 | 1 file changed, 27 insertions(+) | 16 | 1 file changed, 27 insertions(+) |
| 16 | 17 | ||
| 17 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md | 18 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
| 18 | index b89a4276c7c..ee078b0152a 100644 | 19 | index 0ac6e1480e6..7a7c70d607b 100644 |
| 19 | --- a/gcc/config/microblaze/microblaze.md | 20 | --- a/gcc/config/microblaze/microblaze.md |
| 20 | +++ b/gcc/config/microblaze/microblaze.md | 21 | +++ b/gcc/config/microblaze/microblaze.md |
| 21 | @@ -1191,6 +1191,33 @@ | 22 | @@ -1191,6 +1191,33 @@ |
| @@ -53,5 +54,5 @@ index b89a4276c7c..ee078b0152a 100644 | |||
| 53 | ;; Sign extension | 54 | ;; Sign extension |
| 54 | ;;---------------------------------------------------------------- | 55 | ;;---------------------------------------------------------------- |
| 55 | -- | 56 | -- |
| 56 | 2.17.1 | 57 | 2.37.1 (Apple Git-137.1) |
| 57 | 58 | ||
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-source_12.%.bbappend b/meta-microblaze/recipes-devtools/gcc/gcc-source_12.%.bbappend index 09217fd3..9351c82c 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-source_12.%.bbappend +++ b/meta-microblaze/recipes-devtools/gcc/gcc-source_12.%.bbappend | |||
| @@ -15,26 +15,26 @@ SRC_URI:append:microblaze = " \ | |||
| 15 | file://0011-Patch-microblaze-Added-ashrsi3_with_size_opt.patch \ | 15 | file://0011-Patch-microblaze-Added-ashrsi3_with_size_opt.patch \ |
| 16 | file://0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch \ | 16 | file://0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch \ |
| 17 | file://0013-Patch-microblaze-Removed-moddi3-routinue.patch \ | 17 | file://0013-Patch-microblaze-Removed-moddi3-routinue.patch \ |
| 18 | file://0014-Patch-microblaze-Add-INIT_PRIORITY-support.patch \ | 18 | file://0014-Patch-microblaze-Add-INIT_PRIORITY-support-Added.patch \ |
| 19 | file://0015-Patch-microblaze-Add-optimized-lshrsi3.patch \ | 19 | file://0015-Patch-microblaze-Add-optimized-lshrsi3.patch \ |
| 20 | file://0016-Patch-microblaze-Add-cbranchsi4_reg.patch \ | 20 | file://0016-Patch-microblaze-Add-cbranchsi4_reg.patch \ |
| 21 | file://0017-Patch-microblaze-Inline-Expansion-of-fsqrt-builtin.patch \ | 21 | file://0017-Patch-microblaze-Inline-Expansion-of-fsqrt-builtin.patch \ |
| 22 | file://0018-PATCH-microblaze.md-Improve-adddi3-and-subdi3-insn-d.patch \ | 22 | file://0018-PATCH-microblaze.md-Improve-adddi3-and-subdi3-insn-d.patch \ |
| 23 | file://0019-Patch-microblaze-Update-ashlsi3-movsf-patterns.patch \ | 23 | file://0019-Patch-microblaze-Update-ashlsi3-movsf-patterns.patch \ |
| 24 | file://0020-Patch-microblaze-8-stage-pipeline-for-microblaze.patch \ | 24 | file://0020-Patch-microblaze-8-stage-pipeline-for-microblaze.patch \ |
| 25 | file://0021-Patch-microblaze-Correct-the-const-high-double-immed.patch \ | 25 | file://0021-PATCH-21-53-Patch-microblaze-Correct-the-const-high-.patch \ |
| 26 | file://0022-Fix-microblaze-Fix-internal-compiler-error-with-msma.patch \ | 26 | file://0022-Fix-microblaze-Fix-internal-compiler-error-with-msma.patch \ |
| 27 | file://0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch \ | 27 | file://0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch \ |
| 28 | file://0024-Patch-MicroBlaze-this-patch-has.patch \ | 28 | file://0024-Patch-MicroBlaze-this-patch-has-1.Fixed-the-bug-in.patch \ |
| 29 | file://0025-Fixing-the-issue-with-the-builtin_alloc.patch \ | 29 | file://0025-Fixing-the-issue-with-the-builtin_alloc.patch \ |
| 30 | file://0026-Patch-Microblaze-Removed-fsqrt-generation-for-double.patch \ | 30 | file://0026-Patch-Microblaze-Removed-fsqrt-generation-for-double.patch \ |
| 31 | file://0027-Patch-MicroBlaze-Intial-commit-of-64-bit-Microblaze.patch \ | 31 | file://0027-Patch-MicroBlaze-Intial-commit-of-64-bit-Microblaze.patch \ |
| 32 | file://0028-Intial-commit-for-64bit-MB-sources.patch \ | 32 | file://0028-Intial-commit-for-64bit-MB-sources.patch \ |
| 33 | file://0029-re-arrangement-of-the-compare-branches.patch \ | 33 | file://0029-Patch-MicroBlaze-re-arrangement-of-the-compare-branc.patch \ |
| 34 | file://0030-Patch-Microblaze-previous-commit-broke-the-handling-.patch \ | 34 | file://0030-Patch-Microblaze-previous-commit-broke-the-handling-.patch \ |
| 35 | file://0031-Patch-Microblaze-Support-of-multilibs-with-m64.patch \ | 35 | file://0031-Patch-Microblaze-Support-of-multilibs-with-m64.patch \ |
| 36 | file://0032-Fixed-issues-like.patch \ | 36 | file://0032-Patch-MicroBlaze-Fixed-issues-like.patch \ |
| 37 | file://0033-Fixed-below-issues.patch \ | 37 | file://0033-Patch-MicroBlaze.patch \ |
| 38 | file://0034-Added-double-arith-instructions.patch \ | 38 | file://0034-Added-double-arith-instructions.patch \ |
| 39 | file://0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch \ | 39 | file://0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch \ |
| 40 | file://0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch \ | 40 | file://0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch \ |
| @@ -47,7 +47,7 @@ SRC_URI:append:microblaze = " \ | |||
| 47 | file://0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch \ | 47 | file://0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch \ |
| 48 | file://0044-Patch-Microblaze-We-will-check-the-possibility-of-pe.patch \ | 48 | file://0044-Patch-Microblaze-We-will-check-the-possibility-of-pe.patch \ |
| 49 | file://0045-Patch-MicroBlaze-fixed-typos-in-mul-div-and-mod-asse.patch \ | 49 | file://0045-Patch-MicroBlaze-fixed-typos-in-mul-div-and-mod-asse.patch \ |
| 50 | file://0046-Author-Nagaraju-nmekala-xilinx.com.patch \ | 50 | file://0046-Patch-microblaze-MB-64-removal-of-barrel-shift-instr.patch \ |
| 51 | file://0047-Added-new-MB-64-single-register-arithmetic-instructi.patch \ | 51 | file://0047-Added-new-MB-64-single-register-arithmetic-instructi.patch \ |
| 52 | file://0048-Patch-MicroBlaze-Added-support-for-64-bit-Immediate-.patch \ | 52 | file://0048-Patch-MicroBlaze-Added-support-for-64-bit-Immediate-.patch \ |
| 53 | file://0049-Patch-microblaze-Fix-Compiler-crash-with-freg-struct.patch \ | 53 | file://0049-Patch-microblaze-Fix-Compiler-crash-with-freg-struct.patch \ |
