From b9f01dffc61d41868157d3cc31f460d952502779 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Wed, 11 May 2016 23:47:02 +0200 Subject: 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). --- tcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 361ac9f..7b4481e 100644 --- a/tcc.h +++ b/tcc.h @@ -610,7 +610,7 @@ typedef struct CachedInclude { #ifdef CONFIG_TCC_ASM typedef struct ExprValue { - uint32_t v; + uint64_t v; Sym *sym; } ExprValue; -- cgit v1.3.1