aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorYufeng Zhang <yufeng.zhang@arm.com>2013-02-28 18:51:05 +0000
committerYufeng Zhang <yufeng.zhang@arm.com>2013-02-28 18:51:05 +0000
commitaeebdd9b1275015ad6b73f81b2efaea3dfcb7d1e (patch)
tree6b60adc560cbcb4ac4e579370d0e492b6d45783c /gas/config
parent589bc9275a9144de5da11dc1088782397b23ccab (diff)
downloadgdb-aeebdd9b1275015ad6b73f81b2efaea3dfcb7d1e.zip
gdb-aeebdd9b1275015ad6b73f81b2efaea3dfcb7d1e.tar.gz
gdb-aeebdd9b1275015ad6b73f81b2efaea3dfcb7d1e.tar.bz2
gas/
* config/tc-aarch64.c (parse_sys_reg): Allow the full range of CRn for system registers. gas/testsuite/ * gas/aarch64/illegal.l: Delete the error message for msr S3_1_C13_C15_1,x7. * gas/aarch64/sysreg.s: Add new tests. * gas/aarch64/sysreg.d: Update.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-aarch64.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index ce597051..47c27fe 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -3197,10 +3197,14 @@ parse_sys_reg (char **str, struct hash_control *sys_regs, int imple_defined_p)
unsigned int op0, op1, cn, cm, op2;
if (sscanf (buf, "s%u_%u_c%u_c%u_%u", &op0, &op1, &cn, &cm, &op2) != 5)
return PARSE_FAIL;
- /* Register access is encoded as follows:
+ /* The architecture specifies the encoding space for implementation
+ defined registers as:
op0 op1 CRn CRm op2
- 11 xxx 1x11 xxxx xxx. */
- if (op0 != 3 || op1 > 7 || (cn | 0x4) != 0xf || cm > 15 || op2 > 7)
+ 11 xxx 1x11 xxxx xxx
+ For convenience GAS accepts a wider encoding space, as follows:
+ op0 op1 CRn CRm op2
+ 11 xxx xxxx xxxx xxx */
+ if (op0 != 3 || op1 > 7 || cn > 15 || cm > 15 || op2 > 7)
return PARSE_FAIL;
value = (op0 << 14) | (op1 << 11) | (cn << 7) | (cm << 3) | op2;
}