aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-08-11 08:32:54 +0200
committerJan Beulich <jbeulich@suse.com>2021-08-11 08:32:54 +0200
commit7d19d096292acac01d0fde4d99c3e49d69688e03 (patch)
tree5b691ba4679786fb0e8aae2a4e328e2e601b91b6 /gas/read.c
parent8f2200fe8e7f17295ed6d9bbc908da533c95e089 (diff)
downloadgdb-7d19d096292acac01d0fde4d99c3e49d69688e03.zip
gdb-7d19d096292acac01d0fde4d99c3e49d69688e03.tar.gz
gdb-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/read.c b/gas/read.c
index b8e845d..4170a25 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -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':