* [Linux-ia64] ia-64 opcodes
@ 2003-01-06 19:48 CH Gowri Kumar
0 siblings, 0 replies; only message in thread
From: CH Gowri Kumar @ 2003-01-06 19:48 UTC (permalink / raw)
To: linux-ia64
Hello all,
Does anyone have macros for emitting Itanium instructions like the
following:
-----------------------
IA-32 instructions:
typedef enum {
X86_EAX = 0,
X86_ECX = 1,
X86_EDX = 2,
X86_EBX = 3,
X86_ESP = 4,
X86_EBP = 5,
X86_ESI = 6,
X86_EDI = 7,
X86_NREG
} X86_Reg_No;
typedef enum {
X86_ADD = 0,
X86_OR = 1,
X86_ADC = 2,
X86_SBB = 3,
X86_AND = 4,
X86_SUB = 5,
X86_XOR = 6,
X86_CMP = 7,
X86_NALU
} X86_ALU_Opcode;
#define x86_imm_emit32(inst,imm) \
do { \
x86_imm_buf imb; imb.val = (int) (imm); \
*(inst)++ = imb.b [0]; \
*(inst)++ = imb.b [1]; \
*(inst)++ = imb.b [2]; \
*(inst)++ = imb.b [3]; \
} while (0)
-----------------
Thanks in advance.
Gowri Kumar
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-06 19:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-06 19:48 [Linux-ia64] ia-64 opcodes CH Gowri Kumar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.