mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 16:53:50 +08:00
Accept L and LL suffixes to integer constants.
PR gas/20732 * expr.c (integer_constant): If tc_allow_L_suffix is defined and non-zero then accept a L or LL suffix. * testsuite/gas/sparc/pr20732.d: New test source file. * testsuite/gas/sparc/pr20732.d: New test output file. * testsuite/gas/sparc/sparc.exp: Run new test.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2016-11-11 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR gas/20732
|
||||||
|
* expr.c (integer_constant): If tc_allow_L_suffix is defined and
|
||||||
|
non-zero then accept a L or LL suffix.
|
||||||
|
* testsuite/gas/sparc/pr20732.d: New test source file.
|
||||||
|
* testsuite/gas/sparc/pr20732.d: New test output file.
|
||||||
|
* testsuite/gas/sparc/sparc.exp: Run new test.
|
||||||
|
|
||||||
2016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
2016-11-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||||
|
|
||||||
* testsuite/gas/aarch64/pac.s: Add ARMv8.3 branch instruction tests.
|
* testsuite/gas/aarch64/pac.s: Add ARMv8.3 branch instruction tests.
|
||||||
|
@ -515,6 +515,14 @@ integer_constant (int radix, expressionS *expressionP)
|
|||||||
if (tc_allow_U_suffix && (c == 'U' || c == 'u'))
|
if (tc_allow_U_suffix && (c == 'U' || c == 'u'))
|
||||||
c = * input_line_pointer++;
|
c = * input_line_pointer++;
|
||||||
|
|
||||||
|
#ifndef tc_allow_L_suffix
|
||||||
|
#define tc_allow_L_suffix 1
|
||||||
|
#endif
|
||||||
|
/* PR 20732: Look for, and ignore, a L or LL suffix to the number. */
|
||||||
|
if (tc_allow_L_suffix)
|
||||||
|
while (c == 'L' || c == 'l')
|
||||||
|
c = * input_line_pointer++;
|
||||||
|
|
||||||
if (small)
|
if (small)
|
||||||
{
|
{
|
||||||
/* Here with number, in correct radix. c is the next char.
|
/* Here with number, in correct radix. c is the next char.
|
||||||
|
14
gas/testsuite/gas/sparc/pr20732.d
Normal file
14
gas/testsuite/gas/sparc/pr20732.d
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#as:
|
||||||
|
#objdump: -dr --prefix-addresses
|
||||||
|
#name: PR20732 - make sure that the L and LL suffix is accepted on constant values
|
||||||
|
|
||||||
|
.*: +file format .*
|
||||||
|
|
||||||
|
Disassembly of section .text:
|
||||||
|
[0x]+000.*sethi[ ]+%hi\(0x3b9ac800\), %l5
|
||||||
|
[0x]+004.*or[ ]+%l5, 0x200, %l5.*
|
||||||
|
[0x]+008.*sethi[ ]+%hi\(0x3b9ac800\), %l5
|
||||||
|
[0x]+00c.*or[ ]+%l5, 0x200, %l5.*
|
||||||
|
[0x]+010.*sethi[ ]+%hi\(0x3b9ac800\), %l5
|
||||||
|
[0x]+014.*or[ ]+%l5, 0x200, %l5.*
|
||||||
|
#pass
|
3
gas/testsuite/gas/sparc/pr20732.s
Normal file
3
gas/testsuite/gas/sparc/pr20732.s
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
set 1000000000, %l5
|
||||||
|
set 1000000000L, %l5
|
||||||
|
set 1000000000LL, %l5
|
@ -101,6 +101,7 @@ if [istarget sparc*-*-*] {
|
|||||||
run_list_test "pr19910-2"
|
run_list_test "pr19910-2"
|
||||||
run_dump_test "dcti-couples-v8"
|
run_dump_test "dcti-couples-v8"
|
||||||
run_dump_test "dcti-couples-v9c"
|
run_dump_test "dcti-couples-v9c"
|
||||||
|
run_dump_test "pr20732"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [istarget sparc-*-vxworks*] {
|
if [istarget sparc-*-vxworks*] {
|
||||||
|
Reference in New Issue
Block a user