StanfordPL / x64asm

x86-64 assembler library
Apache License 2.0
465 stars 60 forks source link

Alternate instruction encodings are not supported #239

Closed joeleong closed 7 years ago

joeleong commented 7 years ago

failing to encode alternate instruction encodings, for example:

xorl.s %r9d, %r9d ; 45 33 c9

more examples: https://github.com/facebookexperimental/binutils/blob/master/gas/testsuite/gas/i386/ilp32/x86-64-opts-intel.d

see the direction bit here: http://www.c-jump.com/CIS77/CPU/x86/lecture.html#X77_0050_add_opcode

thanks to stoke-developers for helping me track it down and providing the links above

stefanheule commented 7 years ago

We fixed this in #240.