diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-08-11 08:32:54 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-08-11 08:32:54 +0200 |
commit | 7d19d096292acac01d0fde4d99c3e49d69688e03 (patch) | |
tree | 5b691ba4679786fb0e8aae2a4e328e2e601b91b6 /gas/read.c | |
parent | 8f2200fe8e7f17295ed6d9bbc908da533c95e089 (diff) | |
download | binutils-7d19d096292acac01d0fde4d99c3e49d69688e03.zip binutils-7d19d096292acac01d0fde4d99c3e49d69688e03.tar.gz binutils-7d19d096292acac01d0fde4d99c3e49d69688e03.tar.bz2 |
x86: introduce .hfloat directive
This is to be able to generate data passed to {,V}CVTPH2PS and acted
upon by AVX512-FP16 insns. To be able to also use the hex forms
supported for other floating point formats, a small addition to the
generic hex_float() is needed.
Extend existing x86 testcases.
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -4852,6 +4852,11 @@ hex_float (int float_type, char *bytes) switch (float_type) { + case 'h': + case 'H': + length = 2; + break; + case 'f': case 'F': case 's': |