Bug 1875811

Summary: Incorrect scaling of x86_64 immediates
Product: Red Hat Enterprise Linux 8 Reporter: Jakub Jelinek <jakub>
Component: binutilsAssignee: Nick Clifton <nickc>
binutils sub component: system-version QA Contact: qe-baseos-tools-bugs
Status: CLOSED DUPLICATE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: fweimer, law, mprchlik, ohudlick, sipoyare
Version: 8.3   
Target Milestone: rc   
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-04 12:46:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jakub Jelinek 2020-09-04 12:41:55 UTC
Description of problem:
As reported in https://gcc.gnu.org/PR96512 , and as I've confirmed,
the binutils as misassembles some immediates.  See https://sourceware.org/bugzilla/show_bug.cgi?id=23465

Version-Release number of selected component (if applicable):

binutils-2.30-58.el8_1.2
binutils-2.30-77.el8

Steps to Reproduce:

echo 'vbroadcastsd 8(,%r8,8), %zmm0' | as - -o a.o; objdump -dr a.o

a.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <.text>:
   0:	62 b2 fd 48 19 04 c5 	vbroadcastsd 0x1(,%r8,8),%zmm0
   7:	01 00 00 00 

Should be vbroadcastd 0x8(,%r8,8), %zmm0

Comment 1 Jakub Jelinek 2020-09-04 12:46:57 UTC

*** This bug has been marked as a duplicate of bug 1869401 ***