diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/uao-directive.d | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/uao.d | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/uao.s | 32 |
4 files changed, 63 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index dd4a44a..aecac6a 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2015-12-10 Matthew Wahab <matthew.wahab@arm.com> + * gas/aarch64/uao-directive.d: New. + * gas/aarch64/uao.d: New. + * gas/aarch64/uao.s: New. + +2015-12-10 Matthew Wahab <matthew.wahab@arm.com> + * gas/aarch64/sysreg-2.d: Add tests for new registers. * gas/aarch64/sysreg-2.s: Likewise. Also replace some spaces with tabs. diff --git a/gas/testsuite/gas/aarch64/uao-directive.d b/gas/testsuite/gas/aarch64/uao-directive.d new file mode 100644 index 0000000..72569e5 --- /dev/null +++ b/gas/testsuite/gas/aarch64/uao-directive.d @@ -0,0 +1,13 @@ +#objdump: -dr +#as: --defsym DIRECTIVE=1 +#source: uao.s + +.*: file format .* + +Disassembly of section \.text: + +0000000000000000 <.*>: + [0-9a-f]:+ d500417f msr uao, #0x1 + [0-9a-f]:+ d500407f msr uao, #0x0 + [0-9a-f]:+ d5184280 msr uao, x0 + [0-9a-f]:+ d5384281 mrs x1, uao diff --git a/gas/testsuite/gas/aarch64/uao.d b/gas/testsuite/gas/aarch64/uao.d new file mode 100644 index 0000000..49ec413 --- /dev/null +++ b/gas/testsuite/gas/aarch64/uao.d @@ -0,0 +1,12 @@ +#objdump: -dr +#as: -march=armv8.2-a + +.*: file format .* + +Disassembly of section \.text: + +0000000000000000 <.*>: + [0-9a-f]:+ d500417f msr uao, #0x1 + [0-9a-f]:+ d500407f msr uao, #0x0 + [0-9a-f]:+ d5184280 msr uao, x0 + [0-9a-f]:+ d5384281 mrs x1, uao diff --git a/gas/testsuite/gas/aarch64/uao.s b/gas/testsuite/gas/aarch64/uao.s new file mode 100644 index 0000000..c4baa2c --- /dev/null +++ b/gas/testsuite/gas/aarch64/uao.s @@ -0,0 +1,32 @@ +/* uao.s Test file for AArch64 UAO 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 armv8.2-a + .endif + + msr uao, #1 + msr uao, #0 + + msr uao, x0 + mrs x1, uao |