History

x86-64-asm: Fix ltr/str and push/pop operands

str accepts rm16/r32/r64, and push/pop defaults to 64 when given memory operands (to 32 on i386).

Michael Matz committed 10 years ago

Commit c0368601 parent 45b24c33 files · +12 −2Browse files

Showing the changes to tests (1 of 3 files). Show all

Unified · Split

tests/asmtest.S+5−0
@@ -125,6 +125,8 @@ notl %r15d · 124 unmodified lines
125125 push %gs
126126 push $1
127127 push $100
128+ push 0x42(%eax)
129+ pop 0x43(%esi)
128130
129131 #ifdef __i386__
130132 popl %eax
@@ -740,8 +742,11 @@ int $0x10 · 609 unmodified lines
740742 lmsw 0x1000
741743 lsl 0x1000, %ecx
742744 ltr 0x1000
745+ ltr %si
743746 smsw 0x1000
744747 str 0x1000
748+ str %ecx
749+ str %dx
745750
746751 verr 0x1000
747752 verw 0x1000

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t