Go to the source code of this file.
◆ verifyExp
#define verifyExp |
( |
| state | ) |
|
Value:{ \
bool isOK = false; \
try { \
isOK = true; \
} \
} \
if (!isOK) { \
printf(
"ERR " #
state "\n"); \
} \
}
Definition at line 60 of file cvt_test.cpp.
60#define verifyExp(state) \
61{ \
62 bool isOK = false; \
63 try { \
64 state; \
65 } catch (const Xbyak::Error& e) { \
66 if ((int)e == ERR_CANT_CONVERT) { \
67 isOK = true; \
68 } \
69 } \
70 if (!isOK) { \
71 printf("ERR " #state "\n"); \
72 errNum++; \
73 } \
74 testNum++; \
75}
◆ main()
Definition at line 77 of file cvt_test.cpp.
79{
80 for (
size_t i = 0; i <
sizeof(
tbl) /
sizeof(
tbl[0]); i++) {
87 }
92#ifdef XBYAK64
96 }
102#endif
103 }
104 {
105 const Reg8 errTbl[] = {
107 };
108 for (size_t i = 0; i < sizeof(errTbl) / sizeof(errTbl[0]); i++) {
110 }
111 }
112#ifdef XBYAK32
113 {
114 const Reg16 errTbl[] = {
116 };
117 for (size_t i = 0; i < sizeof(errTbl) / sizeof(errTbl[0]); i++) {
119 }
120 }
121#endif
123} catch (std::exception& e) {
124 printf(
"ERR %s\n", e.what());
125}
void verify(const T &x, const T &y)
LOGGING_API void printf(Category category, const char *format,...)
static const Reg8 ch(Operand::CH)
static const Reg8 ah(Operand::AH)
static const Reg16 di(Operand::DI)
static const Reg16 si(Operand::SI)
static const Reg8 dh(Operand::DH)
static const Reg16 sp(Operand::SP)
static const Reg8 bh(Operand::BH)
static const Reg16 bp(Operand::BP)
◆ verify()
void verify |
( |
const T & | x, |
|
|
const T & | y ) |
Definition at line 51 of file cvt_test.cpp.
52{
53 if (x != y) {
54 printf(
"ERR %s %s\n", x.toString(),
y.toString());
56 }
58}
◆ errNum
◆ tbl
Initial value:= {
{ &al, ax, eax },
}
static const Reg8 dl(Operand::DL)
static const Reg32 ebp(Operand::EBP)
static const Reg32 esp(Operand::ESP)
static const Reg16 dx(Operand::DX)
static const Reg32 ecx(Operand::ECX)
static const Reg32 edi(Operand::EDI)
static const Reg32 edx(Operand::EDX)
static const Reg16 cx(Operand::CX)
static const Reg32 ebx(Operand::EBX)
static const Reg8 bl(Operand::BL)
static const Reg8 cl(Operand::CL)
static const Reg16 bx(Operand::BX)
static const Reg32 esi(Operand::ESI)
◆ testNum