summaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorYufeng Zhang <yufeng.zhang@arm.com>2013-02-12 14:31:12 +0000
committerYufeng Zhang <yufeng.zhang@arm.com>2013-02-12 14:31:12 +0000
commit4afc46ba8260f5193909aeec3710684f8bfe7f7d (patch)
tree604515e4fafc958da396258158219b8dcb1434e1 /gas
parent49dd82e6eab3c2bbfa3003003a1f976ed62d8fed (diff)
downloadbinutils-gdb-4afc46ba8260f5193909aeec3710684f8bfe7f7d.tar.gz
opcodes/
* aarch64-opc.c (aarch64_sys_regs): Add rmr_el1, rmr_el2 and rmr_el3; remove daifset and daifclr. gas/testsuite/ * gas/aarch64/sysreg-1.s: Add tests of rmr_el1, rmr_el2 and rmr_el3. * gas/aarch64/sysreg-1.d: Update. * gas/aarch64/illegal.s: Add tests of daifset and daifclr. * gas/aarch64/illegal.d: Update.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/aarch64/illegal.l2
-rw-r--r--gas/testsuite/gas/aarch64/illegal.s3
-rw-r--r--gas/testsuite/gas/aarch64/sysreg-1.d6
-rw-r--r--gas/testsuite/gas/aarch64/sysreg-1.s4
5 files changed, 22 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index d98df81e55a..6700b52ec63 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,12 @@
2013-02-12 Yufeng Zhang <yufeng.zhang@arm.com>
+ * gas/aarch64/sysreg-1.s: Add tests of rmr_el1, rmr_el2 and rmr_el3.
+ * gas/aarch64/sysreg-1.d: Update.
+ * gas/aarch64/illegal.s: Add tests of daifset and daifclr.
+ * gas/aarch64/illegal.d: Update.
+
+2013-02-12 Yufeng Zhang <yufeng.zhang@arm.com>
+
* gas/aarch64/illegal-2.s: Add test case.
* gas/aarch64/illegal-2.l: Likewise.
diff --git a/gas/testsuite/gas/aarch64/illegal.l b/gas/testsuite/gas/aarch64/illegal.l
index 74386ff98b5..6c741cf88fe 100644
--- a/gas/testsuite/gas/aarch64/illegal.l
+++ b/gas/testsuite/gas/aarch64/illegal.l
@@ -547,3 +547,5 @@
[^:]*:535: Error: .*`orr x0. x0,#0xff,lsl#1'
[^:]*:536: Error: .*`orr x0,x0,#0xff lsl#1'
[^:]*:538: Error: .*`mov x0,##5'
+[^:]*:540: Error: .*`msr daifset,x0'
+[^:]*:541: Error: .*`msr daifclr,x0'
diff --git a/gas/testsuite/gas/aarch64/illegal.s b/gas/testsuite/gas/aarch64/illegal.s
index ed31ee18701..9a12463a381 100644
--- a/gas/testsuite/gas/aarch64/illegal.s
+++ b/gas/testsuite/gas/aarch64/illegal.s
@@ -536,3 +536,6 @@
orr x0, x0, #0xff lsl #1
mov x0, ##5
+
+ msr daifset, x0
+ msr daifclr, x0
diff --git a/gas/testsuite/gas/aarch64/sysreg-1.d b/gas/testsuite/gas/aarch64/sysreg-1.d
index 684bf0b680b..75f75b7e418 100644
--- a/gas/testsuite/gas/aarch64/sysreg-1.d
+++ b/gas/testsuite/gas/aarch64/sysreg-1.d
@@ -4271,3 +4271,9 @@ Disassembly of section \.text:
429c: d513040f msr dbgdtr_el0, x15
42a0: d533040f mrs x15, dbgdtr_el0
42a4: d533050f mrs x15, dbgdtrrx_el0
+ 42a8: d518c04f msr rmr_el1, x15
+ 42ac: d538c04f mrs x15, rmr_el1
+ 42b0: d51cc04f msr rmr_el2, x15
+ 42b4: d53cc04f mrs x15, rmr_el2
+ 42b8: d51ec04f msr rmr_el3, x15
+ 42bc: d53ec04f mrs x15, rmr_el3
diff --git a/gas/testsuite/gas/aarch64/sysreg-1.s b/gas/testsuite/gas/aarch64/sysreg-1.s
index eb8649b4e16..a2fcef4ee22 100644
--- a/gas/testsuite/gas/aarch64/sysreg-1.s
+++ b/gas/testsuite/gas/aarch64/sysreg-1.s
@@ -158,3 +158,7 @@
rw_sys_reg sys_reg=dbgdtr_el0 xreg=x15 r=1 w=1
rw_sys_reg sys_reg=dbgdtrrx_el0 xreg=x15 r=1 w=0
+
+ rw_sys_reg sys_reg=rmr_el1 xreg=x15 r=1 w=1
+ rw_sys_reg sys_reg=rmr_el2 xreg=x15 r=1 w=1
+ rw_sys_reg sys_reg=rmr_el3 xreg=x15 r=1 w=1