+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.
+
2018-08-23 H.J. Lu <hongjiu.lu@intel.com>
PR ld/23536
const char *p = strchr (*s, ',');
size_t i, len = p ? (size_t)(p - *s) : strlen (*s);
+ if (len == 0)
+ return FALSE;
+
for (i = 0; i < size; i++)
if (array[i] != NULL && strncmp (array[i], *s, len) == 0)
{
--- /dev/null
+#as: -march=rv32i
+#source: fence-fail.s
+#error-output: fence-fail.l
--- /dev/null
+.*: Assembler messages:
+.*: Error: illegal operands `fence ,'
+.*: Error: illegal operands `fence w,'
+.*: Error: illegal operands `fence ,w'
--- /dev/null
+target:
+ fence ,
+ fence w,
+ fence ,w
--- /dev/null
+#as: -march=rv32ifd
+#source: rouding-fail.s
+#error-output: rouding-fail.l
--- /dev/null
+.*: Assembler messages:
+.*: Error: illegal operands `fadd.s fa1,fa1,fa1,'
+.*: Error: illegal operands `fadd.d fa1,fa1,fa1,'
--- /dev/null
+target:
+ fadd.s fa1,fa1,fa1,
+ fadd.d fa1,fa1,fa1,