Mail Archives: djgpp/2000/03/24/17:10:31
Alexei A. Frounze wrote:
>But appending these suffixes to FPU instructions, I get error messages
>like "invalid instruction" or something like that. I.e. AS doesn't
>recognize FILDW (for 16-bit integer), FLDQ (floating point double), FLDT
>(floating point extended - FPU internal 10-byte format).
From the manual of as (info as):
* Floating point constructors are `.float' or `.single', `.double',
and `.tfloat' for 32-, 64-, and 80-bit formats. These correspond
to instruction mnemonic suffixes `s', `l', and `t'. `t' stands for
80-bit (ten byte) real. [...]
So to load float double and long double, use flds, fldl and fldt.
To load a 16, 32 and 64 bit signed interger use fild, fildl and fildq.
There is also some info about inline assembly and floating point
registers in the Gcc manual (info gcc).
-- Regards, Dieter
- Raw text -