Command to reproduce the issue:

echo "vmovaps 0x40(,%rax,1),%zmm0" | as --64 -o avx.o && objdump -d
avx.o | grep vmovaps

The expected output is that the objdump output matches the vmovaps
instruction input. When using binutils with the bug, the initial 0x40
will be incorrect.

>From an Ubuntu 20.04 system:

$ echo "vmovaps 0x40(,%rax,1),%zmm0" | as --64 -o avx.o && objdump -d avx.o | 
grep vmovaps
   0:   62 f1 7c 48 28 04 05    vmovaps 0x40(,%rax,1),%zmm0

On an Ubuntu 18.04 system:

$ echo "vmovaps 0x40(,%rax,1),%zmm0" | as --64 -o avx.o && objdump -d avx.o | 
grep vmovaps
   0:   62 f1 7c 48 28 04 05    vmovaps 0x1(,%rax,1),%zmm0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1883880

Title:
  fix non-8-bit x86 displacements breaking AVX512 builds on Bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1883880/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to