summaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-devtools/gcc/gcc-13/0022-Fix-internal-compiler-error-with-msmall-divides-This.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-microblaze/recipes-devtools/gcc/gcc-13/0022-Fix-internal-compiler-error-with-msmall-divides-This.patch')
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0022-Fix-internal-compiler-error-with-msmall-divides-This.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-13/0022-Fix-internal-compiler-error-with-msmall-divides-This.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0022-Fix-internal-compiler-error-with-msmall-divides-This.patch
new file mode 100644
index 00000000..599bd71e
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0022-Fix-internal-compiler-error-with-msmall-divides-This.patch
@@ -0,0 +1,31 @@
1From a88796930d8ef1b97056217ffdcc9f86326cdc98 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 11:58:14 +0530
4Subject: [PATCH 22/54] Fix internal compiler error with msmall-divides This
5 patch will fix the internal error microblaze_expand_divide function which
6 come of rtx PLUS where the mem_rtx is of type SI and the operand is of type
7 QImode. This patch modifies the mem_rtx as QImode and Plus as QImode to fix
8 the error.
9
10 Signed-off-by :Nagaraju Mekala <nmekala@xilix.com>
11 Ajit Agarwal <ajitkum@xilinx.com>
12---
13 gcc/config/microblaze/microblaze.cc | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
17index af5c2371740..4967d6a0133 100644
18--- a/gcc/config/microblaze/microblaze.cc
19+++ b/gcc/config/microblaze/microblaze.cc
20@@ -3777,7 +3777,7 @@ microblaze_expand_divide (rtx operands[])
21 emit_insn (gen_ashlsi3_bshift (regt1, operands[1], GEN_INT(4)));
22 emit_insn (gen_addsi3 (regt1, regt1, operands[2]));
23 mem_rtx = gen_rtx_MEM (QImode,
24- gen_rtx_PLUS (Pmode, regt1, div_table_rtx));
25+ gen_rtx_PLUS (QImode, regt1, div_table_rtx));
26
27 insn = emit_insn (gen_zero_extendqisi2(operands[0],mem_rtx));
28 jump = emit_jump_insn_after (gen_jump (div_end_label), insn);
29--
302.34.1
31