diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-06-07 12:05:35 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-06-07 12:05:35 +0200 |
commit | 6b5ba0d49e3d96454b4b43f8bc861394fcf694b6 (patch) | |
tree | caf9aed44839ba9b29097d79272ea1d44180a808 /gas/testsuite | |
parent | e68c3d59acd09748a65233879033b947a9d1ad51 (diff) | |
download | gdb-6b5ba0d49e3d96454b4b43f8bc861394fcf694b6.zip gdb-6b5ba0d49e3d96454b4b43f8bc861394fcf694b6.tar.gz gdb-6b5ba0d49e3d96454b4b43f8bc861394fcf694b6.tar.bz2 |
x86: honor quoted figure braces in i386_att_operand()
When AVX512 support was added, symbol quotation was not paid attention
to. Just like the (base,index,scale) specifier gets parsed from the end
of the expression, the {...} also wants parsing from the end; in no case
is the first { found a guarantee of a masking or broadcasting specifier.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/i386/quoted.d | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/quoted.s | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/quoted.d b/gas/testsuite/gas/i386/quoted.d index 11b28c0..c73576a 100644 --- a/gas/testsuite/gas/i386/quoted.d +++ b/gas/testsuite/gas/i386/quoted.d @@ -13,6 +13,8 @@ Disassembly of section .text: [ ]*[a-f0-9]+:[ ]*a1 00 00 00 00[ ]+mov 0x0,%eax [a-f0-9]+: (R_386_|dir)32 x\(y [ ]*[a-f0-9]+:[ ]*a1 00 00 00 00[ ]+mov 0x0,%eax [a-f0-9]+: (R_386_|dir)32 x\)y [ ]*[a-f0-9]+:[ ]*a1 00 00 00 00[ ]+mov 0x0,%eax [a-f0-9]+: (R_386_|dir)32 x\?y +[ ]*[a-f0-9]+:[ ]*a1 00 00 00 00[ ]+mov 0x0,%eax [a-f0-9]+: (R_386_|dir)32 x\{y +[ ]*[a-f0-9]+:[ ]*a1 00 00 00 00[ ]+mov 0x0,%eax [a-f0-9]+: (R_386_|dir)32 x\{z\} [ ]*[a-f0-9]+:[ ]*ff 15 00 00 00 00[ ]+call \*0x0 [a-f0-9]+: (R_386_|dir)32 x\(y\) [ ]*[a-f0-9]+:[ ]*26 ff 15 00 00 00 00[ ]+call \*%es:0x0 [a-f0-9]+: (R_386_|dir)32 x\(y\) [ ]*[a-f0-9]+:[ ]*26 ff 15 00 00 00 00[ ]+call \*%es:0x0 [a-f0-9]+: (R_386_|dir)32 x\(y\) diff --git a/gas/testsuite/gas/i386/quoted.s b/gas/testsuite/gas/i386/quoted.s index 1e57c86..21ada46 100644 --- a/gas/testsuite/gas/i386/quoted.s +++ b/gas/testsuite/gas/i386/quoted.s @@ -8,6 +8,8 @@ quoted: mov "x(y", %eax mov "x)y", %eax mov "x?y", %eax + mov "x{y", %eax + mov "x{z}", %eax call *"x(y)" call *%es:"x(y)" |