aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorYufeng Zhang <yufeng.zhang@arm.com>2013-01-30 15:43:32 +0000
committerYufeng Zhang <yufeng.zhang@arm.com>2013-01-30 15:43:32 +0000
commite30181a58decaecae0e2544b7a489915d3bcc611 (patch)
tree43b4e89fd44f8418df2019e39892e119cb3428ec /gas
parentf9b2d5449aa0df00eb0c2b2ca9da21d879245bad (diff)
downloadgdb-e30181a58decaecae0e2544b7a489915d3bcc611.zip
gdb-e30181a58decaecae0e2544b7a489915d3bcc611.tar.gz
gdb-e30181a58decaecae0e2544b7a489915d3bcc611.tar.bz2
include/opcode/
2013-01-30 Yufeng Zhang <yufeng.zhang@arm.com> * aarch64.h (aarch64_op): Add OP_SXTL, OP_SXTL2, OP_UXTL and OP_UXTL2. opcodes/ 2013-01-30 Yufeng Zhang <yufeng.zhang@arm.com> * aarch64-tbl.h (aarch64_opcode_table): Flag sshll, sshll2, ushll and ushll2 with F_HAS_ALIAS. Add entries for sxtl, sxtl2, uxtl and uxtl2. * aarch64-asm.c (convert_xtl_to_shll): New function. (convert_to_real): Handle OP_SXTL, OP_SXTL2, OP_UXTL and OP_UXTL2 by calling convert_xtl_to_shll. * aarch64-dis.c (convert_shll_to_xtl): New function. (convert_to_alias): Handle OP_SXTL, OP_SXTL2, OP_UXTL and OP_UXTL2 by calling convert_shll_to_xtl. * aarch64-gen.c: Update copyright year. * aarch64-asm-2.c: Re-generate. * aarch64-dis-2.c: Re-generate. * aarch64-opc-2.c: Re-generate. gas/testsuite/ 2013-01-30 Yufeng Zhang <yufeng.zhang@arm.com> * gas/aarch64/alias.s: Add new tests. * gas/aarch64/alias.d: Update. * gas/aarch64/no-aliases.d: Update.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/aarch64/alias.d24
-rw-r--r--gas/testsuite/gas/aarch64/alias.s20
-rw-r--r--gas/testsuite/gas/aarch64/no-aliases.d24
4 files changed, 73 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 2846785..5a85b86 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2013-01-30 Yufeng Zhang <yufeng.zhang@arm.com>
+
+ * gas/aarch64/alias.s: Add new tests.
+ * gas/aarch64/alias.d: Update.
+ * gas/aarch64/no-aliases.d: Update.
+
2013-01-30 Markos Chandras <markos.chandras@imgtec.com>
* gas/metag/metacore21-invalid.s: Add invalid SWAP testcases.
diff --git a/gas/testsuite/gas/aarch64/alias.d b/gas/testsuite/gas/aarch64/alias.d
index ddc2157..53cf5e9 100644
--- a/gas/testsuite/gas/aarch64/alias.d
+++ b/gas/testsuite/gas/aarch64/alias.d
@@ -72,3 +72,27 @@ Disassembly of section \.text:
100: b13ffdff cmn x15, #0xfff
104: f13fffef subs x15, sp, #0xfff
108: b13ffdff cmn x15, #0xfff
+ 10c: 0f08a448 sxtl v8.8h, v2.8b
+ 110: 0f08a448 sxtl v8.8h, v2.8b
+ 114: 4f08a448 sxtl2 v8.8h, v2.16b
+ 118: 4f08a448 sxtl2 v8.8h, v2.16b
+ 11c: 0f10a448 sxtl v8.4s, v2.4h
+ 120: 0f10a448 sxtl v8.4s, v2.4h
+ 124: 4f10a448 sxtl2 v8.4s, v2.8h
+ 128: 4f10a448 sxtl2 v8.4s, v2.8h
+ 12c: 0f20a448 sxtl v8.2d, v2.2s
+ 130: 0f20a448 sxtl v8.2d, v2.2s
+ 134: 4f20a448 sxtl2 v8.2d, v2.4s
+ 138: 4f20a448 sxtl2 v8.2d, v2.4s
+ 13c: 2f08a448 uxtl v8.8h, v2.8b
+ 140: 2f08a448 uxtl v8.8h, v2.8b
+ 144: 6f08a448 uxtl2 v8.8h, v2.16b
+ 148: 6f08a448 uxtl2 v8.8h, v2.16b
+ 14c: 2f10a448 uxtl v8.4s, v2.4h
+ 150: 2f10a448 uxtl v8.4s, v2.4h
+ 154: 6f10a448 uxtl2 v8.4s, v2.8h
+ 158: 6f10a448 uxtl2 v8.4s, v2.8h
+ 15c: 2f20a448 uxtl v8.2d, v2.2s
+ 160: 2f20a448 uxtl v8.2d, v2.2s
+ 164: 6f20a448 uxtl2 v8.2d, v2.4s
+ 168: 6f20a448 uxtl2 v8.2d, v2.4s
diff --git a/gas/testsuite/gas/aarch64/alias.s b/gas/testsuite/gas/aarch64/alias.s
index c2b71b9..0db9aff 100644
--- a/gas/testsuite/gas/aarch64/alias.s
+++ b/gas/testsuite/gas/aarch64/alias.s
@@ -2,7 +2,7 @@
preference. It is also used to test the -Mno-aliases option in
the disassemler.
- Copyright 2012 Free Software Foundation, Inc.
+ Copyright 2012, 2013 Free Software Foundation, Inc.
Contributed by ARM Ltd.
This file is part of GAS.
@@ -99,3 +99,21 @@
adds xzr, x15, #0xfff
subs x15, sp, #0xfff
cmn x15, #0xfff
+
+ .macro asimdshll s
+ \s\()xtl v8.8h, v2.8b
+ \s\()shll v8.8h, v2.8b, #0
+ \s\()xtl2 v8.8h, v2.16b
+ \s\()shll2 v8.8h, v2.16b, #0
+ \s\()xtl v8.4s, v2.4h
+ \s\()shll v8.4s, v2.4h, #0
+ \s\()xtl2 v8.4s, v2.8h
+ \s\()shll2 v8.4s, v2.8h, #0
+ \s\()xtl v8.2d, v2.2s
+ \s\()shll v8.2d, v2.2s, #0
+ \s\()xtl2 v8.2d, v2.4s
+ \s\()shll2 v8.2d, v2.4s, #0
+ .endm
+
+ asimdshll s
+ asimdshll u
diff --git a/gas/testsuite/gas/aarch64/no-aliases.d b/gas/testsuite/gas/aarch64/no-aliases.d
index 5ccf80b..1065094 100644
--- a/gas/testsuite/gas/aarch64/no-aliases.d
+++ b/gas/testsuite/gas/aarch64/no-aliases.d
@@ -73,3 +73,27 @@ Disassembly of section \.text:
100: b13ffdff adds xzr, x15, #0xfff
104: f13fffef subs x15, sp, #0xfff
108: b13ffdff adds xzr, x15, #0xfff
+ 10c: 0f08a448 sshll v8.8h, v2.8b, #0
+ 110: 0f08a448 sshll v8.8h, v2.8b, #0
+ 114: 4f08a448 sshll2 v8.8h, v2.16b, #0
+ 118: 4f08a448 sshll2 v8.8h, v2.16b, #0
+ 11c: 0f10a448 sshll v8.4s, v2.4h, #0
+ 120: 0f10a448 sshll v8.4s, v2.4h, #0
+ 124: 4f10a448 sshll2 v8.4s, v2.8h, #0
+ 128: 4f10a448 sshll2 v8.4s, v2.8h, #0
+ 12c: 0f20a448 sshll v8.2d, v2.2s, #0
+ 130: 0f20a448 sshll v8.2d, v2.2s, #0
+ 134: 4f20a448 sshll2 v8.2d, v2.4s, #0
+ 138: 4f20a448 sshll2 v8.2d, v2.4s, #0
+ 13c: 2f08a448 ushll v8.8h, v2.8b, #0
+ 140: 2f08a448 ushll v8.8h, v2.8b, #0
+ 144: 6f08a448 ushll2 v8.8h, v2.16b, #0
+ 148: 6f08a448 ushll2 v8.8h, v2.16b, #0
+ 14c: 2f10a448 ushll v8.4s, v2.4h, #0
+ 150: 2f10a448 ushll v8.4s, v2.4h, #0
+ 154: 6f10a448 ushll2 v8.4s, v2.8h, #0
+ 158: 6f10a448 ushll2 v8.4s, v2.8h, #0
+ 15c: 2f20a448 ushll v8.2d, v2.2s, #0
+ 160: 2f20a448 ushll v8.2d, v2.2s, #0
+ 164: 6f20a448 ushll2 v8.2d, v2.4s, #0
+ 168: 6f20a448 ushll2 v8.2d, v2.4s, #0