aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-03-31 08:19:58 +0200
committerJan Beulich <jbeulich@suse.com>2023-03-31 08:19:58 +0200
commitd0c2e3ec82275af986ecba93b1a8602fc9a4abbd (patch)
tree150174c45610cae8cae6df29a758b971518a48c7 /gas/testsuite
parentedd67638687a06788c8c69c75e139bca8f94f1a3 (diff)
downloadgdb-d0c2e3ec82275af986ecba93b1a8602fc9a4abbd.zip
gdb-d0c2e3ec82275af986ecba93b1a8602fc9a4abbd.tar.gz
gdb-d0c2e3ec82275af986ecba93b1a8602fc9a4abbd.tar.bz2
x86: parse VEX and alike specifiers for .insn
All encoding spaces can be used this way; there's a certain risk that the bits presently reserved could be used for other purposes down the road, but people using .insn are expected to know what they're doing anyway. Plus this way there's at least _some_ way to have those bits set. For now this will only allow operand-less insns to be encoded this way.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/i386/insn-32.d2
-rw-r--r--gas/testsuite/gas/i386/insn-32.s4
-rw-r--r--gas/testsuite/gas/i386/insn-64.d2
-rw-r--r--gas/testsuite/gas/i386/insn-64.s4
4 files changed, 12 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/insn-32.d b/gas/testsuite/gas/i386/insn-32.d
index d1b761c..77c6fc0 100644
--- a/gas/testsuite/gas/i386/insn-32.d
+++ b/gas/testsuite/gas/i386/insn-32.d
@@ -11,4 +11,6 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: f3 90[ ]+pause
[ ]*[a-f0-9]+: d9 ee[ ]+fldz
[ ]*[a-f0-9]+: f3 0f 01 e8[ ]+setssbsy
+[ ]*[a-f0-9]+: c5 fc 77[ ]+vzeroall
+[ ]*[a-f0-9]+: c4 e1 7c 77[ ]+vzeroall
#pass
diff --git a/gas/testsuite/gas/i386/insn-32.s b/gas/testsuite/gas/i386/insn-32.s
index 71e8427..db0ddb7 100644
--- a/gas/testsuite/gas/i386/insn-32.s
+++ b/gas/testsuite/gas/i386/insn-32.s
@@ -12,3 +12,7 @@ insn:
# setssbsy
.insn 0xf30f01e8
+
+ # vzeroall
+ .insn VEX.256.0F.WIG 0x77
+ .insn {vex3} VEX.L1 0x0f77
diff --git a/gas/testsuite/gas/i386/insn-64.d b/gas/testsuite/gas/i386/insn-64.d
index 716e2a8..6c61989 100644
--- a/gas/testsuite/gas/i386/insn-64.d
+++ b/gas/testsuite/gas/i386/insn-64.d
@@ -11,4 +11,6 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: f3 90[ ]+pause
[ ]*[a-f0-9]+: d9 ee[ ]+fldz
[ ]*[a-f0-9]+: f3 0f 01 e8[ ]+setssbsy
+[ ]*[a-f0-9]+: c5 fc 77[ ]+vzeroall
+[ ]*[a-f0-9]+: c4 e1 7c 77[ ]+vzeroall
#pass
diff --git a/gas/testsuite/gas/i386/insn-64.s b/gas/testsuite/gas/i386/insn-64.s
index 71e8427..db0ddb7 100644
--- a/gas/testsuite/gas/i386/insn-64.s
+++ b/gas/testsuite/gas/i386/insn-64.s
@@ -12,3 +12,7 @@ insn:
# setssbsy
.insn 0xf30f01e8
+
+ # vzeroall
+ .insn VEX.256.0F.WIG 0x77
+ .insn {vex3} VEX.L1 0x0f77