Commit Graph

17 Commits

Author SHA1 Message Date
pancake
19a377bbda Fix and move failing tests, reorder lib build ##arch 2022-11-30 15:43:54 +01:00
pancake
d5027d07d3 Support reg+idx and idx+reg in x86.nz assembler ##arch 2022-11-30 15:43:54 +01:00
Peter Meerwald-Stadler
444530137c
Fix rasm2 x86.nz for "xchg eax,eax" and add tests ##asm
rasm2 -a x86.nz -b 64 "xchg eax,eax" -> 87c0
rasm2 -a x86.nz -b 32 "xchg eax,eax" -> 90
2022-10-12 03:03:27 +02:00
Lazula
f166d98704
Mark fixed tests as not broken and change incorrect x86_32 tests (#19163) 2021-10-04 20:58:50 +02:00
Adwaith V Gautham
c6c498455f
Fix #19019 - Added OT_GPREG flag to instructions with byte, word, qword etc ##asm
* Updated code for a few x86 instructions and added tests for the same
2021-09-01 01:04:23 +02:00
pancake
2434c3ca74
Switch to Capstone5 as default ##asm (#18127)
* Add riscv for capstone5 in the meson
* Report capstone version in the asm plugins
* Many changes in the ppc analysis, seems like it's improved, (emulation quality and xrefs)
* Update all tests and report issues in capstone4 to upstream
* Fix-x86-16 test marked as broken as it needs better fix
2021-04-24 22:04:51 +02:00
pancake
9978bbd7c5
Implement assembler endbr32 and endbr64 instructions for x86-32/64 (#17035) ##asm
Co-authored-by: pancake <pancake@nopcode.org>
2020-06-10 19:15:46 +08:00
atodekangae
b18529696c Fix assembling of xchg so that it roundtrips 2020-04-29 00:13:25 +02:00
atodekangae
60fbd0b83a Fix assembling of xchg and the tests for it 2020-04-29 00:13:25 +02:00
atodekangae
e40e51d2ce Fix assembling of bswap r8(d)-r15(d) 2020-04-29 00:13:25 +02:00
atodekangae
f1e113ca8f
Fix assembling of pop r8-r15 (#16710) 2020-04-24 18:40:09 +02:00
Khairul Azhar Kasmiran
123aa79117
x86_64: Support mov r64, 0xffffffffffffffff (#16630) ##asm 2020-04-23 19:30:35 +02:00
Khairul Azhar Kasmiran
538563149b
x86_64: Fix MOV r32, -imm32 encoding (#16609) ##asm 2020-04-16 16:30:32 +02:00
Khairul Azhar Kasmiran
a275bad0db
x86_64: Fix REX.B for MOV r64-extended, imm32/64 (#16602) 2020-04-16 13:23:02 +08:00
Khairul Kasmiran
7b4bee8cff x86_64: Add some tests and remove some unused MOV C7 code 2020-04-14 23:48:47 +02:00
Khairul Azhar Kasmiran
a43831ba96 Fix #16433 - Use MOV opcode B8+ for MOV r64, <0x80000000 to 0xffffffff> #16572 ##asm
Detailed description

I've confirmed #16433 (comment) (including the nasm rax -> eax bug) and thus this pr
makes the x86_64 assembler use the MOV B8+ encoding (MOV r64, imm64) when the immediate
is between 0x80000000 and 0xffffffff for both:

Consistency with GNU assembler.  It actually does seem to be the expected encoding.
This does mean that mov eax, 0xffffffff and mov rax, 0xffffffff will have very different semantics.
2020-04-13 21:23:39 +02:00
pancake
346eb5bd38
Move test/new/* into test/ ##tests (#16511) 2020-04-13 19:49:23 +02:00