pike.git / src / code / amd64.c

version» Context lines:

pike.git/src/code/amd64.c:1:   /*    * Machine code generator for AMD64.    */      #include "operators.h"   #include "constants.h"   #include "object.h"   #include "builtin_functions.h"    + /* These come from linux include files. */ + #ifdef REG_RBX + #undef REG_RAX + #undef REG_RBX + #undef REG_RCX + #undef REG_RDX + #undef REG_RSP + #undef REG_RBP + #undef REG_RSI + #undef REG_RDI + #undef REG_R8 + #undef REG_R9 + #undef REG_R10 + #undef REG_R11 + #undef REG_R12 + #undef REG_R13 + #undef REG_R14 + #undef REG_R15 + #endif    -  +  + #define REG_RAX MISSING_P_ + #define REG_RBX MISSING_P_ + #define REG_RCX MISSING_P_ + #define REG_RDX MISSING_P_ + #define REG_RSP MISSING_P_ + #define REG_RBP MISSING_P_ + #define REG_RSI MISSING_P_ + #define REG_RDI MISSING_P_ + #define REG_R8 MISSING_P_ + #define REG_R9 MISSING_P_ + #define REG_R10 MISSING_P_ + #define REG_R11 MISSING_P_ + #define REG_R12 MISSING_P_ + #define REG_R13 MISSING_P_ + #define REG_R14 MISSING_P_ + #define REG_R15 MISSING_P_ +  +    /* Register encodings */   enum amd64_reg {P_REG_RAX = 0, P_REG_RBX = 3, P_REG_RCX = 1, P_REG_RDX = 2,    P_REG_RSP = 4, P_REG_RBP = 5, P_REG_RSI = 6, P_REG_RDI = 7,    P_REG_R8 = 8, P_REG_R9 = 9, P_REG_R10 = 10, P_REG_R11 = 11,    P_REG_R12 = 12, P_REG_R13 = 13, P_REG_R14 = 14, P_REG_R15 = 15,    P_REG_INVALID = -1,       P_REG_XMM0 = 0, P_REG_XMM1 = 1, P_REG_XMM2 = 2, P_REG_XMM3 = 3,    P_REG_XMM4 = 4, P_REG_XMM5 = 5, P_REG_XMM6 = 6, P_REG_XMM7 = 7,    P_REG_XMM8 = 8, P_REG_XMM9 = 9, P_REG_XMM10=10, P_REG_XMM11=11,