diff options
| author | Michael Matz <matz@suse.de> | 2016-08-06 23:19:04 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:47:10 +0100 |
| commit | c0368604e196d53b281cd2aceb140b5facd36ed7 (patch) | |
| tree | 79e43dc55a8404909231fe2f91516df9a0ebcc52 /tests/asmtest.S | |
| parent | 45b24c37a0ea8886ac13c7a93741566c197071f4 (diff) | |
| download | tinycc-c0368604e196d53b281cd2aceb140b5facd36ed7.tar.gz tinycc-c0368604e196d53b281cd2aceb140b5facd36ed7.tar.bz2 | |
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).
Diffstat (limited to 'tests/asmtest.S')
| -rw-r--r-- | tests/asmtest.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/asmtest.S b/tests/asmtest.S index a565ec0..10ec2ee 100644 --- a/tests/asmtest.S +++ b/tests/asmtest.S @@ -125,6 +125,8 @@ notl %r15d push %gs push $1 push $100 + push 0x42(%eax) + pop 0x43(%esi) #ifdef __i386__ popl %eax @@ -740,8 +742,11 @@ int $0x10 lmsw 0x1000 lsl 0x1000, %ecx ltr 0x1000 + ltr %si smsw 0x1000 str 0x1000 + str %ecx + str %dx verr 0x1000 verw 0x1000 |
