x86/ELF: fix .tfloat output
authorJan Beulich <jbeulich@suse.com>
Wed, 11 Aug 2021 06:30:26 +0000 (08:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Aug 2021 06:30:26 +0000 (08:30 +0200)
commite2295dade838ad296e1e1cd1096177058139b6b3
treee3a3e336bd33766ed7aea049b5b5f8ab887985e0
parente7e57d02fb51dcb1e976f1a089de3113d9aac2ba
x86/ELF: fix .tfloat output

The ELF psABI-s are quite clear here: On 32-bit the data type is 12
bytes long (with 2 bytes of trailing padding), while on 64-bit it is 16
bytes long (with 6 bytes of padding). Make ieee_md_atof() capable of
handling such padding, and specify the needed padding for x86 (leaving
non-ELF targets alone for now). Split the existing x86 testcase.
gas/config/atof-ieee.c
gas/config/tc-i386.c
gas/config/tc-i386.h
gas/testsuite/gas/i386/fp-elf32.d [new file with mode: 0644]
gas/testsuite/gas/i386/fp-elf64.d [new file with mode: 0644]
gas/testsuite/gas/i386/fp.s
gas/testsuite/gas/i386/i386.exp