x86-64-asm: Clean up 64bit immediate support
commitb9f01dffc61d41868157d3cc31f460d952502779
authorMichael Matz <matz@suse.de>
Wed, 11 May 2016 21:47:02 +0000 (11 23:47 +0200)
committerMichael Matz <matz@suse.de>
Wed, 11 May 2016 21:47:02 +0000 (11 23:47 +0200)
tree670d676fb8ef8d052443c9bb84e9520dbea37bdb
parentf3cee9ceffb2c11872df20b8a8e4d2188fe81832
x86-64-asm: Clean up 64bit immediate support

Fix it to actually be able to parse 64bit immediates (enlarge
operand value type).  Then, generally there's no need for accepting
IM64 anywhere, except in the 0xba+r mov opcodes, so OP_IM is
unnecessary, as is OPT_IMNO64.  Improve the generated code a bit
by preferring the 0xc7 opcode for im32->reg64, instead of the
im64->reg64 form (which we therefore hardcode).
i386-asm.c
tcc.h
tccasm.c
tests/asmtest.S
x86_64-asm.h