summaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-devtools/gcc/gcc-13/0023-Fix-the-calculation-of-high-word-in-a-long-long-64-b.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-microblaze/recipes-devtools/gcc/gcc-13/0023-Fix-the-calculation-of-high-word-in-a-long-long-64-b.patch')
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0023-Fix-the-calculation-of-high-word-in-a-long-long-64-b.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-13/0023-Fix-the-calculation-of-high-word-in-a-long-long-64-b.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0023-Fix-the-calculation-of-high-word-in-a-long-long-64-b.patch
new file mode 100644
index 00000000..65f283ad
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0023-Fix-the-calculation-of-high-word-in-a-long-long-64-b.patch
@@ -0,0 +1,36 @@
1From f9871617fe69a105ebc4aa4838c682bfe40e4f2c Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 12:03:08 +0530
4Subject: [PATCH 23/54] Fix the calculation of high word in a long long 64-bit
5
6 This patch will change the calculation of high word in a long long 64-bit.
7 Earlier to this patch the high word of long long word (0xF0000000ULL) is
8 coming to be 0xFFFFFFFF and low word is 0xF0000000. Instead the high word
9 should be 0x00000000 and the low word should be 0xF0000000. This patch
10 removes the condition of checking high word = 0 & low word < 0.
11 This check is not required for the correctness of calculating 32-bit high
12 and low words in a 64-bit long long.
13
14 Signed-off-by :Nagaraju Mekala <nmekala@xilix.com>
15 Ajit Agarwal <ajitkum@xilinx.com>
16---
17 gcc/config/microblaze/microblaze.cc | 3 ---
18 1 file changed, 3 deletions(-)
19
20diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
21index 4967d6a0133..2d516724acc 100644
22--- a/gcc/config/microblaze/microblaze.cc
23+++ b/gcc/config/microblaze/microblaze.cc
24@@ -2474,9 +2474,6 @@ print_operand (FILE * file, rtx op, int letter)
25 {
26 val[0] = (INTVAL (op) & 0xffffffff00000000LL) >> 32;
27 val[1] = INTVAL (op) & 0x00000000ffffffffLL;
28- if (val[0] == 0 && val[1] < 0)
29- val[0] = -1;
30-
31 }
32 fprintf (file, "0x%8.8lx", (letter == 'h') ? val[0] : val[1]);
33 }
34--
352.34.1
36