RISC-V: Reject empty rouding mode and fence operand.
authorJim Wilson <jimw@sifive.com>
Thu, 23 Aug 2018 20:26:48 +0000 (13:26 -0700)
committerJim Wilson <jimw@sifive.com>
Thu, 23 Aug 2018 20:26:48 +0000 (13:26 -0700)
commitbfb218e3e404a6168888df51c03827eacde9ceea
tree2b4c11ce08696265181b4a21e715a32ca24209e7
parentb0ceb98aec8e1ab610deea9fee9ee75c5911bbc0
RISC-V: Reject empty rouding mode and fence operand.

gas/
2018-08-23  Kito Cheng  <kito@andestech.com>
* config/tc-riscv.c (arg_lookup): Checking
length before look up.
* testsuite/gas/riscv/fence-fail.d: New file.
* testsuite/gas/riscv/fence-fail.l: Likewise.
* testsuite/gas/riscv/fence-fail.s: Likewise.
* testsuite/gas/riscv/rouding-fail.d: Likewise.
* testsuite/gas/riscv/rouding-fail.l: Likewise.
* testsuite/gas/riscv/rouding-fail.s: Likewise.
gas/ChangeLog
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/fence-fail.d [new file with mode: 0644]
gas/testsuite/gas/riscv/fence-fail.l [new file with mode: 0644]
gas/testsuite/gas/riscv/fence-fail.s [new file with mode: 0644]
gas/testsuite/gas/riscv/rouding-fail.d [new file with mode: 0644]
gas/testsuite/gas/riscv/rouding-fail.l [new file with mode: 0644]
gas/testsuite/gas/riscv/rouding-fail.s [new file with mode: 0644]