Bug 6800 - bug in push and pop
Summary: bug in push and pop
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-31 10:39 UTC by Paul Cockshott
Modified: 2008-08-14 22:58 UTC (History)
1 user (show)

See Also:
Host: Linux amd 64 bit
Target: Linux amd 64 bit
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Cockshott 2008-07-31 10:39:18 UTC
The push and pop instructions of gas on the amd64 bit architecture do not
correctly assemble pop or push instructions for 32 bit registers.
The architecture supporst pop %edx and push %edx but these are not accepted by
gas either as
pop %edx

or as

popl %edx
Comment 1 H.J. Lu 2008-08-14 22:58:05 UTC
You can't pop/push 32bit registers in 64bit mode.