S12Z: New option -mreg-prefix
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 15 May 2019 12:16:33 +0000 (14:16 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 15 May 2019 14:25:18 +0000 (16:25 +0200)
commit95008a882803920a0faf672dd4a54edcc6ab66a7
tree02002a8ce019154a349eee4a8da3484ac18e5825
parent7bede82892a06e6c26989803e70f53697392dcf9
S12Z: New option -mreg-prefix

Add a new machine dependent option to set a prefix for register names.

gas/

* config/tc-s12z.c (register_prefix): New variable.  (md_show_usage,
  md_parse_option):  parse the new option.
  (lex_reg_name): Scan the prefix if one is set.
* doc/c-s12z.texi (S12Z-Opts): Document the new option.
* testsuite/gas/s12z/reg-prefix.d: New file.
* testsuite/gas/s12z/reg-prefix.s: New file.
* testsuite/gas/s12z/s12z.exp: Add them.
gas/ChangeLog
gas/config/tc-s12z.c
gas/doc/c-s12z.texi
gas/testsuite/gas/s12z/reg-prefix.d [new file with mode: 0644]
gas/testsuite/gas/s12z/reg-prefix.s [new file with mode: 0644]
gas/testsuite/gas/s12z/s12z.exp