aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorMatthew Wahab <matthew.wahab@arm.com>2015-06-01 16:05:58 +0100
committerJiong Wang <jiong.wang@arm.com>2015-06-01 16:05:58 +0100
commit72ca8fad61dea369e4e584e80d3326dc894703b8 (patch)
tree13191cb6aa6ded97bee899db9ae0c4cea8ef9e24 /gas/testsuite
parentf21cce2cacb534428ed6ea96fdb684ad8a4a948a (diff)
downloadgdb-72ca8fad61dea369e4e584e80d3326dc894703b8.zip
gdb-72ca8fad61dea369e4e584e80d3326dc894703b8.tar.gz
gdb-72ca8fad61dea369e4e584e80d3326dc894703b8.tar.bz2
[AArch64][GAS] Add support for PAN architecture extension
2015-06-01 Matthew Wahab <matthew.wahab@arm.com> gas/ * config/tc-aarch64.c (parse_sys_reg): New parameter. Check target support. Fix whitespace. (parse_operands): Update for parse_sys_reg changes. (aarch64_features): Add "pan". * doc/c-aarch64.texi (Aarch64 Extensions): Add "pan". gas/testsuite/ * pan-directive.d: New. * pan.d: New. * pan.s: New
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/aarch64/pan-directive.d13
-rw-r--r--gas/testsuite/gas/aarch64/pan.d12
-rw-r--r--gas/testsuite/gas/aarch64/pan.s34
4 files changed, 65 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 38751eb..233e138 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
+
+ * pan-directive.d: New.
+ * pan.d: New.
+ * pan.s: New
+
2015-06-01 Jiong Wang <jiong.wang@arm.com>
* gas/aarch64/ilp32-basic.s: New testcase.
diff --git a/gas/testsuite/gas/aarch64/pan-directive.d b/gas/testsuite/gas/aarch64/pan-directive.d
new file mode 100644
index 0000000..704f7a3
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/pan-directive.d
@@ -0,0 +1,13 @@
+#objdump: -dr
+#as: --defsym DIRECTIVE=1
+#source: pan.s
+
+.*: file format .*
+
+Disassembly of section \.text:
+
+0000000000000000 <.*>:
+ 0: d500419f msr pan, #0x1
+ 4: d500409f msr pan, #0x0
+ 8: d5184260 msr pan, x0
+ c: d5384261 mrs x1, pan
diff --git a/gas/testsuite/gas/aarch64/pan.d b/gas/testsuite/gas/aarch64/pan.d
new file mode 100644
index 0000000..db1fd02
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/pan.d
@@ -0,0 +1,12 @@
+#objdump: -dr
+#as: -march=armv8-a+pan
+
+.*: file format .*
+
+Disassembly of section \.text:
+
+0000000000000000 <.*>:
+ 0: d500419f msr pan, #0x1
+ 4: d500409f msr pan, #0x0
+ 8: d5184260 msr pan, x0
+ c: d5384261 mrs x1, pan
diff --git a/gas/testsuite/gas/aarch64/pan.s b/gas/testsuite/gas/aarch64/pan.s
new file mode 100644
index 0000000..059046c
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/pan.s
@@ -0,0 +1,34 @@
+/* pan.s Test file for AArch64 PAN instructions.
+
+ Copyright (C) 2015 Free Software Foundation, Inc.
+ Contributed by ARM Ltd.
+
+ This file is part of GAS.
+
+ GAS is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the license, or
+ (at your option) any later version.
+
+ GAS is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING3. If not,
+ see <http://www.gnu.org/licenses/>. */
+
+
+ .text
+ .ifdef DIRECTIVE
+ .arch_extension pan
+ .endif
+
+ msr pan, #1
+ msr pan, #0
+
+ msr pan, x0
+ mrs x1, pan
+
+ .arch_extension nopan