diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-02-20 09:23:20 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-02-20 09:23:20 -0800 |
commit | 200cbe0f460aa858e2bfc9741f61eeab3e7ac15a (patch) | |
tree | 053a0af06fdeb8416c1fbc1097580bdc7266f98d /gas/config | |
parent | 7384ffbd16116000f2627e49940b13b5307bae99 (diff) | |
download | fsf-binutils-gdb-200cbe0f460aa858e2bfc9741f61eeab3e7ac15a.zip fsf-binutils-gdb-200cbe0f460aa858e2bfc9741f61eeab3e7ac15a.tar.gz fsf-binutils-gdb-200cbe0f460aa858e2bfc9741f61eeab3e7ac15a.tar.bz2 |
[i386] Check RegVRex in register_number
Increment register number by 16 if RegVRex is set.
* config/tc-i386.c (register_number): Check RegVRex.
* testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
with %zmm19 and %zmm3.
* testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
* testsuite/gas/i386/x86-64-avx512f.d: Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 2bc7616..37ee392 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -1880,6 +1880,9 @@ register_number (const reg_entry *r) if (r->reg_flags & RegRex) nr += 8; + if (r->reg_flags & RegVRex) + nr += 16; + return nr; } |