RISC-V: Accept constant operands in la and lla
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Tue, 19 Jun 2018 05:12:48 +0000 (07:12 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Wed, 20 Jun 2018 05:24:25 +0000 (07:24 +0200)
commit160d1b3d74593bf42155da24569f54a6e7140f65
tree07aa127b857a8233489f774a5d811b227865d691
parent4ef2c1b90ecca33c2948b7b009860767d64c6398
RISC-V: Accept constant operands in la and lla

opcodes/
PR gas/23305
* riscv-opc.c (riscv_opcodes): Use new format specifier 'B' for
la and lla.

gas/
PR gas/23305
* config/tc-riscv.c (riscv_ip): Add format specifier 'B' for
constants and symbols.
* testsuite/gas/riscv/lla32.d: New file.
* testsuite/gas/riscv/lla32.s: Likewise.
* testsuite/gas/riscv/lla64-fail.d: Likewise.
* testsuite/gas/riscv/lla64-fail.l: Likewise.
* testsuite/gas/riscv/lla64-fail.s: Likewise.
* testsuite/gas/riscv/lla64.d: Likewise.
* testsuite/gas/riscv/lla64.s: Likewise.
gas/ChangeLog
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/lla32.d [new file with mode: 0644]
gas/testsuite/gas/riscv/lla32.s [new file with mode: 0644]
gas/testsuite/gas/riscv/lla64-fail.d [new file with mode: 0644]
gas/testsuite/gas/riscv/lla64-fail.l [new file with mode: 0644]
gas/testsuite/gas/riscv/lla64-fail.s [new file with mode: 0644]
gas/testsuite/gas/riscv/lla64.d [new file with mode: 0644]
gas/testsuite/gas/riscv/lla64.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/riscv-opc.c