blob: 4aef7c98269029eeb0b0c59289280140496f53b5 [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001From 70ba2154c2261d5a9d35a765c29acc5fdcdeea38 Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nmekala@xilix.com>
3Date: Mon, 16 Oct 2017 15:44:23 +0530
4Subject: [PATCH] fixing the constant range check issue sample error: not in
5 range ffffffff80000000..7fffffff, not ffffffff70000000
6
7Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
8
9---
10 gas/config/tc-microblaze.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
14index 71bb888..16b10d0 100644
15--- a/gas/config/tc-microblaze.c
16+++ b/gas/config/tc-microblaze.c
17@@ -757,7 +757,7 @@ parse_imm (char * s, expressionS * e, offsetT min, offsetT max)
18 if ((e->X_add_number >> 31) == 1)
19 e->X_add_number |= -((addressT) (1U << 31));
20
21- if (e->X_add_number < min || e->X_add_number > max)
22+ if ((int)e->X_add_number < min || (int)e->X_add_number > max)
23 {
24 as_fatal (_("operand must be absolute in range %lx..%lx, not %lx"),
25 (long) min, (long) max, (long) e->X_add_number);