mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
Convert some floatformat_{to,from}_double to floatformat_{to,from}_doublest.
This commit is contained in:
parent
a15525c16a
commit
5ea92dfe6a
@ -1,3 +1,11 @@
|
||||
2001-08-11 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
|
||||
val a DOUBLEST. Use floatformat_to_doublest.
|
||||
(REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
|
||||
* config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
|
||||
(REGISTER_CONVERT_TO_RAW): Ditto.
|
||||
|
||||
2001-08-11 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
|
||||
|
@ -268,8 +268,8 @@ switch (regno) { \
|
||||
#undef REGISTER_CONVERT_TO_VIRTUAL
|
||||
#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \
|
||||
{ \
|
||||
double val; \
|
||||
floatformat_to_double (&floatformat_i387_ext, (FROM), &val); \
|
||||
DOUBLEST val; \
|
||||
floatformat_to_doublest (&floatformat_i387_ext, (FROM), &val); \
|
||||
store_floating ((TO), TYPE_LENGTH (TYPE), val); \
|
||||
}
|
||||
|
||||
@ -279,8 +279,8 @@ switch (regno) { \
|
||||
#undef REGISTER_CONVERT_TO_RAW
|
||||
#define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \
|
||||
{ \
|
||||
double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \
|
||||
floatformat_from_double (&floatformat_i387_ext, &val, (TO)); \
|
||||
DOUBLEST val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \
|
||||
floatformat_from_doublest (&floatformat_i387_ext, &val, (TO)); \
|
||||
}
|
||||
|
||||
/* Return the GDB type object for the "standard" data type
|
||||
|
@ -392,8 +392,8 @@ if (!target_is_m88110) \
|
||||
|
||||
#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \
|
||||
{ \
|
||||
double val; \
|
||||
floatformat_to_double (&floatformat_m88110_ext, (FROM), &val); \
|
||||
DOUBLEST val; \
|
||||
floatformat_to_doublest (&floatformat_m88110_ext, (FROM), &val); \
|
||||
store_floating ((TO), TYPE_LENGTH (TYPE), val); \
|
||||
}
|
||||
|
||||
@ -402,8 +402,8 @@ if (!target_is_m88110) \
|
||||
|
||||
#define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \
|
||||
{ \
|
||||
double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \
|
||||
floatformat_from_double (&floatformat_m88110_ext, &val, (TO)); \
|
||||
DOUBLEST val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \
|
||||
floatformat_from_doublest (&floatformat_m88110_ext, &val, (TO)); \
|
||||
}
|
||||
|
||||
/* Return the GDB type object for the "standard" data type
|
||||
|
Loading…
Reference in New Issue
Block a user