aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2020-06-08 08:40:58 +0200
committerJan Beulich <jbeulich@suse.com>2020-06-08 08:40:58 +0200
commitdd6b8a0bc27667532cb4afd31caf85121aa5a751 (patch)
treea5ff3e78b95b2fc3f30185b7461cc3aa9169d790 /gas
parent73c76375955890df396b4f78dee0fa6a52af6c5f (diff)
downloadbinutils-dd6b8a0bc27667532cb4afd31caf85121aa5a751.zip
binutils-dd6b8a0bc27667532cb4afd31caf85121aa5a751.tar.gz
binutils-dd6b8a0bc27667532cb4afd31caf85121aa5a751.tar.bz2
x86: also handle %k<N> and %bnd<N> in debugging helpers
Adjustment of this function was missed when support for the respective registers was added.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-i386.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 27ffa3c..4d6a4bc 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
2020-06-08 Jan Beulich <jbeulich@suse.com>
+ * config/tc-i386.c (pi): Add checks for RegMask and RegBND.
+
+2020-06-08 Jan Beulich <jbeulich@suse.com>
+
* config/tc-i386.c (check_byte_reg): Drop dead conditional
around as_bad().
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index e0ebf80..15d6257 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -3198,10 +3198,12 @@ pi (const char *line, i386_insn *x)
if (x->types[j].bitfield.class == Reg
|| x->types[j].bitfield.class == RegMMX
|| x->types[j].bitfield.class == RegSIMD
+ || x->types[j].bitfield.class == RegMask
|| x->types[j].bitfield.class == SReg
|| x->types[j].bitfield.class == RegCR
|| x->types[j].bitfield.class == RegDR
- || x->types[j].bitfield.class == RegTR)
+ || x->types[j].bitfield.class == RegTR
+ || x->types[j].bitfield.class == RegBND)
fprintf (stdout, "%s\n", x->op[j].regs->reg_name);
if (operand_type_check (x->types[j], imm))
pe (x->op[j].imms);