aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-arc.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d495233e..47e1f7a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2018-09-20 Maciej W. Rozycki <macro@linux-mips.org>
+
+ * config/tc-arc.c (md_number_to_chars_midend): Append `ull' to
+ large constants.
+
2018-09-20 Nelson Chu <nelson.chu1990@gmail.com>
* config/tc-nds32.c: Remove the unused target features.
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index 6f0407b..a9b3f1a 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -799,7 +799,7 @@ md_number_to_chars_midend (char *buf, unsigned long long val, int n)
md_number_to_chars (buf, val, n);
break;
case 6:
- md_number_to_chars (buf, (val & 0xffff00000000) >> 32, 2);
+ md_number_to_chars (buf, (val & 0xffff00000000ull) >> 32, 2);
md_number_to_chars_midend (buf + 2, (val & 0xffffffff), 4);
break;
case 4:
@@ -807,7 +807,7 @@ md_number_to_chars_midend (char *buf, unsigned long long val, int n)
md_number_to_chars (buf + 2, (val & 0xffff), 2);
break;
case 8:
- md_number_to_chars_midend (buf, (val & 0xffffffff00000000) >> 32, 4);
+ md_number_to_chars_midend (buf, (val & 0xffffffff00000000ull) >> 32, 4);
md_number_to_chars_midend (buf + 4, (val & 0xffffffff), 4);
break;
default: