$ cat x.s vmovaps 64(,%rax), %zmm0 $ gcc -c x.s $ objdump -dw x.o x.o: file format elf64-x86-64 Disassembly of section .text: 0000000000000000 <.text>: 0: 62 f1 7c 48 28 04 05 01 00 00 00 vmovaps 0x1(,%rax,1),%zmm0
Fixed on master branch by commit 629cfaf1b0fbb32a985607c774bd8e7870b9fa94 Author: Jan Beulich <jbeulich@novell.com> Date: Mon Jul 30 17:25:05 2018 +0200 x86: don't mistakenly scale non-8-bit displacements In commit b5014f7af2 I've removed (instead of replaced) a conditional, resulting in addressing forms not allowing 8-bit displacements to now get their displacements scaled under certain circumstances. Re-add the missing conditional.
The binutils-2_31-branch branch has been updated by Jan Beulich <jbeulich@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2069ccaf8dc28ea699bd901fdd35d90613e4402a commit 2069ccaf8dc28ea699bd901fdd35d90613e4402a Author: Jan Beulich <jbeulich@novell.com> Date: Tue Jul 31 11:04:34 2018 +0200 x86: don't mistakenly scale non-8-bit displacements PR gas/23465 In commit b5014f7af2 I've removed (instead of replaced) a conditional, resulting in addressing forms not allowing 8-bit displacements to now get their displacements scaled under certain circumstances. Re-add the missing conditional.
Fixed for master and 2.31 branch.
*** Bug 23628 has been marked as a duplicate of this bug. ***
*** Bug 23314 has been marked as a duplicate of this bug. ***
The binutils-2_30-branch branch has been updated by H.J. Lu <hjl@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4e518864c879be2e6af4c64415e8775d9a20deaf commit 4e518864c879be2e6af4c64415e8775d9a20deaf Author: Jan Beulich <jbeulich@novell.com> Date: Tue Jul 31 11:04:34 2018 +0200 x86: don't mistakenly scale non-8-bit displacements In commit b5014f7af2 I've removed (instead of replaced) a conditional, resulting in addressing forms not allowing 8-bit displacements to now get their displacements scaled under certain circumstances. Re-add the missing conditional. 2018-07-30 Jan Beulich <jbeulich@suse.com> PR gas/23465 * config/tc-i386.c (output_disp): Restrict scaling. * testsuite/gas/i386/evex-no-scale.s, testsuite/gas/i386/evex-no-scale-32.d testsuite/gas/i386/evex-no-scale-64.d: New. * testsuite/gas/i386/i386.exp: Run new tests. (cherry picked from commit 629cfaf1b0fbb32a985607c774bd8e7870b9fa94)
*** Bug 24434 has been marked as a duplicate of this bug. ***