summaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-devtools/gcc/gcc-12/0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-microblaze/recipes-devtools/gcc/gcc-12/0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch')
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-12/0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch38
1 files changed, 15 insertions, 23 deletions
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 @@
1From e6f5b2ba1c03ac3d0521291beb64d64a125e1481 Mon Sep 17 00:00:00 2001 1From b98cddb206ce84994425ede4b116365977768e37 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Wed, 18 Jan 2017 12:03:39 +0530 3Date: Tue, 13 Sep 2022 12:03:08 +0530
4Subject: [PATCH 23/53] [patch,microblaze]: Fix the calculation of high word in 4Subject: [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
7This 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.
8Earlier 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
9coming 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
10should be 0x00000000 and the low word should be 0xF0000000. This patch 10 should be 0x00000000 and the low word should be 0xF0000000. This patch
11removes the condition of checking high word = 0 & low word < 0. 11 removes the condition of checking high word = 0 & low word < 0.
12This 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
13and low words in a 64-bit long long. 13 and low words in a 64-bit long long.
14 14
15Signed-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
18ChangeLog:
192016-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
29diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 21diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
30index 94aaeaa3a67..84e17fc4520 100644 22index 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--
442.17.1 362.37.1 (Apple Git-137.1)
45 37