diff options
author | Will Newton <will.newton@linaro.org> | 2013-10-31 17:21:11 -0700 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2013-11-05 14:28:30 +0000 |
commit | 8db49cc2de52033990ae5d4d6aacedc8f986e803 (patch) | |
tree | c6a173f3f3070f2138c0e63cdd701e01d51691fd /gas/config | |
parent | 12b272760b8ed06ee64f4b6ce52eb9beeed35841 (diff) | |
download | gdb-8db49cc2de52033990ae5d4d6aacedc8f986e803.zip gdb-8db49cc2de52033990ae5d4d6aacedc8f986e803.tar.gz gdb-8db49cc2de52033990ae5d4d6aacedc8f986e803.tar.bz2 |
config/tc-aarch64.c: Avoid trying to parse a vector mov as immediate.
Parsing a vector mov instruction currently leads to a phantom undefined
symbol being added to the symbol table. e.g.:
.text
mov x0, v0.D[0]
Produces an undefined symbol called "v0.D".
gas/ChangeLog:
2013-11-05 Will Newton <will.newton@linaro.org>
PR gas/16103
* config/tc-aarch64.c (parse_operands): Avoid trying to
parse a vector register as an immediate.
gas/testsuite/ChangeLog:
2013-11-05 Will Newton <will.newton@linaro.org>
* gas/aarch64/advsimd-mov-bad.d: New file.
* gas/aarch64/advsimd-mov-bad.s: Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-aarch64.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 14ffdad..02fe4de 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -4810,7 +4810,8 @@ parse_operands (char *str, const aarch64_opcode *opcode) case AARCH64_OPND_IMM_MOV: { char *saved = str; - if (reg_name_p (str, REG_TYPE_R_Z_SP)) + if (reg_name_p (str, REG_TYPE_R_Z_SP) || + reg_name_p (str, REG_TYPE_VN)) goto failure; str = saved; po_misc_or_fail (my_get_expression (&inst.reloc.exp, &str, |