+2012-08-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/14457
+ * config/tc-i386.c (i386_att_operand): Terminate register name
+ when reporting bad register.
+
2012-08-14 Hans-Peter Nilsson <hp@bitrange.com>
* config/tc-mmix.c (loc_asserts): New variable.
}
else if (*base_string == REGISTER_PREFIX)
{
+ end_op = strchr (base_string, ',');
+ if (end_op)
+ *end_op = '\0';
as_bad (_("bad register name `%s'"), base_string);
return 0;
}
}
else if (*base_string == REGISTER_PREFIX)
{
+ end_op = strchr (base_string, ',');
+ if (end_op)
+ *end_op = '\0';
as_bad (_("bad register name `%s'"), base_string);
return 0;
}
+2012-08-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/14457
+ * gas/i386/i386.exp: Run reg-bad.
+
+ * gas/i386/reg-bad.l: New.
+ * gas/i386/reg-bad.s: Likewise.
+
2012-08-14 Hans-Peter Nilsson <hp@bitrange.com>
* gas/mmix/err-fb-2.s: New test.
run_dump_test "intel-expr"
run_dump_test "string-ok"
run_list_test "string-bad" ""
+ run_list_test "reg-bad" ""
run_list_test "space1" "-al"
run_dump_test rept
if [is_elf_format] then {
--- /dev/null
+.*: Assembler messages:
+.*:2: Error: bad register name `%xxx'
+.*:3: Error: bad register name `%xxx'
+.*:4: Error: bad register name `%xxxxxxxxx'
+.*:5: Error: bad register name `%xxxxxxxxx'
--- /dev/null
+ .text
+ lea (%xxx,%esi,1),%esi
+ lea (%esi,%xxx,1),%esi
+ lea (%xxxxxxxxx,%esi,1),%esi
+ lea (%esi,%xxxxxxxxx,1),%esi