Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | From 9393a3e346d2ccbb86761117260c1dd89070a507 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
| 3 | Date: Wed, 15 Nov 2017 17:45:34 -0800 |
| 4 | Subject: [PATCH] Fixing MicroBlaze constant range check issue |
| 5 | |
| 6 | Sample error: not in range ffffffff80000000..7fffffff, not ffffffff70000000 |
| 7 | |
| 8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
| 9 | Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> |
| 10 | Upstream-Status: Pending |
| 11 | |
| 12 | --- |
| 13 | gas/config/tc-microblaze.c | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
| 17 | index 21a5a0c..c614556 100644 |
| 18 | --- a/gas/config/tc-microblaze.c |
| 19 | +++ b/gas/config/tc-microblaze.c |
| 20 | @@ -749,7 +749,7 @@ parse_imm (char * s, expressionS * e, offsetT min, offsetT max) |
| 21 | if ((e->X_add_number >> 31) == 1) |
| 22 | e->X_add_number |= -((addressT) (1U << 31)); |
| 23 | |
| 24 | - if (e->X_add_number < min || e->X_add_number > max) |
| 25 | + if ((int)e->X_add_number < min || (int)e->X_add_number > max) |
| 26 | { |
| 27 | as_fatal (_("operand must be absolute in range %lx..%lx, not %lx"), |
| 28 | (long) min, (long) max, (long) e->X_add_number); |