-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzilladuplicateResolved as duplicateResolved as duplicate
Description
| Bugzilla Link | 8687 |
| Resolution | DUPLICATE |
| Resolved on | Nov 25, 2010 08:16 |
| Version | trunk |
| OS | FreeBSD |
| CC | @asl |
Extended Description
In the FreeBSD tree, there exists this fragment of inline assembly in a
.c file:
float x;
...
__asm __volatile("ffree %%st(7); fld %0" : : "m" (x));
This gets compiled to the following preprocessed assembly:
ffree %st(7)
fld -4(%ebp)
Though the fld mnemonic misses a size suffix such as 's', gas assembles
it anyway, and apparently interprets it as a float operation:
6: dd c7 ffree %st(7)
8: d9 45 fc flds 0xfffffffc(%ebp)
I'm not sure what the right approach is here; it seems rather arbitrary
to use flds by default, but apparently that's what gas does.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzilladuplicateResolved as duplicateResolved as duplicate