PR 27411
* config/tc-arm.c (do_t_add_sub): Correct error message.
* testsuite/gas/arm/pr27411.s: New test.
* testsuite/gas/arm/pr27411.d: New test driver.
* testsuite/gas/arm/pr27411.l: Expected error output for new test.
+2021-02-26 Nick Clifton <nickc@redhat.com>
+
+ PR 27411
+ * config/tc-arm.c (do_t_add_sub): Correct error message.
+ * testsuite/gas/arm/pr27411.s: New test.
+ * testsuite/gas/arm/pr27411.d: New test driver.
+ * testsuite/gas/arm/pr27411.l: Expected error output for new test.
+
2021-02-24 Alan Modra <amodra@gmail.com>
PR 23691
}
}
else
- constraint (inst.size_req == 2, BAD_HIREG);
+ constraint (inst.size_req == 2, _("cannot honor width suffix"));
}
if (inst.size_req == 4
|| (inst.size_req != 2 && !opcode))
--- /dev/null
+# name: PR 27411: Invalid immediate constants produce wrong error message
+# error_output: pr27411.l
--- /dev/null
+[^:]*: Assembler messages:
+[^:]*:6: Error: cannot honor width suffix -- `add.n r4,#8'
+[^:]*:9: Error: cannot honor width suffix -- `sub.n r4,#8'
+[^:]*:12: Error: cannot honor width suffix -- `lsl.n r4,#8'
+[^:]*:13: Error: cannot honor width suffix -- `lsl.n sp,#8'
+#pass
--- /dev/null
+ .syntax unified
+ .thumb
+ .align 2
+ .thumb_func
+f1:
+ add.n r4, #8
+ add.n sp, #8
+ add.w r4, #8
+ sub.n r4, #8
+ sub.n sp, #8
+ sub.w r4, #8
+ lsl.n r4, #8
+ lsl.n sp, #8
+ lsl.w r4, #8