Changeset View
Changeset View
Standalone View
Standalone View
contrib/gdb/gdb/i387-tdep.c
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | print_i387_ext (unsigned char *raw, struct ui_file *file) | ||||
/* QNaN. */ | /* QNaN. */ | ||||
fputs_filtered (" QNaN", file); | fputs_filtered (" QNaN", file); | ||||
else | else | ||||
/* SNaN. */ | /* SNaN. */ | ||||
fputs_filtered (" SNaN", file); | fputs_filtered (" SNaN", file); | ||||
} | } | ||||
else if (exponent < 0x7fff && exponent > 0x0000 && integer) | else if (exponent < 0x7fff && exponent > 0x0000 && integer) | ||||
/* Normal. */ | /* Normal. */ | ||||
print_i387_value (raw, file); | print_i387_value ((char *)raw, file); | ||||
else if (exponent == 0x0000) | else if (exponent == 0x0000) | ||||
{ | { | ||||
/* Denormal or zero. */ | /* Denormal or zero. */ | ||||
print_i387_value (raw, file); | print_i387_value ((char *)raw, file); | ||||
if (integer) | if (integer) | ||||
/* Pseudo-denormal. */ | /* Pseudo-denormal. */ | ||||
fputs_filtered (" Pseudo-denormal", file); | fputs_filtered (" Pseudo-denormal", file); | ||||
else if (fraction[0] || fraction[1]) | else if (fraction[0] || fraction[1]) | ||||
/* Denormal. */ | /* Denormal. */ | ||||
fputs_filtered (" Denormal", file); | fputs_filtered (" Denormal", file); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 465 Lines • ▼ Show 20 Lines | if (i >= I387_FCTRL_REGNUM && i < I387_XMM0_REGNUM | ||||
for (fpreg = 7; fpreg >= 0; fpreg--) | for (fpreg = 7; fpreg >= 0; fpreg--) | ||||
{ | { | ||||
int tag; | int tag; | ||||
if (val[0] & (1 << fpreg)) | if (val[0] & (1 << fpreg)) | ||||
{ | { | ||||
int regnum = (fpreg + 8 - top) % 8 + I387_ST0_REGNUM; | int regnum = (fpreg + 8 - top) % 8 + I387_ST0_REGNUM; | ||||
tag = i387_tag (FXSAVE_ADDR (regs, regnum)); | tag = i387_tag ((const unsigned char *)FXSAVE_ADDR (regs, regnum)); | ||||
} | } | ||||
else | else | ||||
tag = 3; /* Empty */ | tag = 3; /* Empty */ | ||||
ftag |= tag << (2 * fpreg); | ftag |= tag << (2 * fpreg); | ||||
} | } | ||||
val[0] = ftag & 0xff; | val[0] = ftag & 0xff; | ||||
val[1] = (ftag >> 8) & 0xff; | val[1] = (ftag >> 8) & 0xff; | ||||
▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines |