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/config | |
parent | 8f2200fe8e7f17295ed6d9bbc908da533c95e089 (diff) | |
download | fsf-binutils-gdb-7d19d096292acac01d0fde4d99c3e49d69688e03.zip fsf-binutils-gdb-7d19d096292acac01d0fde4d99c3e49d69688e03.tar.gz fsf-binutils-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/config')
-rw-r--r-- | gas/config/tc-i386.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 0fa8b0d..a9e3621 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -512,7 +512,7 @@ const char EXP_CHARS[] = "eE"; /* Chars that mean this number is a floating point constant As in 0f12.456 or 0d1.2345e12. */ -const char FLT_CHARS[] = "fFdDxX"; +const char FLT_CHARS[] = "fFdDxXhH"; /* Tables for lexical analysis. */ static char mnemonic_chars[256]; @@ -1356,6 +1356,7 @@ const pseudo_typeS md_pseudo_table[] = {"ffloat", float_cons, 'f'}, {"dfloat", float_cons, 'd'}, {"tfloat", float_cons, 'x'}, + {"hfloat", float_cons, 'h'}, {"value", cons, 2}, {"slong", signed_cons, 4}, {"noopt", s_ignore, 0}, |