diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-11-29 17:54:42 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-11-29 17:54:42 +0900 |
commit | e2d9685af9fb6b0b8e792876b00fa44f18efcf78 (patch) | |
tree | 308dd0ec09eb73e90875cc804c2cbd35a9b3352e /gen | |
parent | a4ec97ca9d593b812dc0c8a8e6b1aef285ca80df (diff) | |
download | xbyak-e2d9685af9fb6b0b8e792876b00fa44f18efcf78.tar.gz xbyak-e2d9685af9fb6b0b8e792876b00fa44f18efcf78.zip |
add cfcmov
Diffstat (limited to 'gen')
-rw-r--r-- | gen/gen_code.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gen/gen_code.cpp b/gen/gen_code.cpp index 424b6d3..bebd4e4 100644 --- a/gen/gen_code.cpp +++ b/gen/gen_code.cpp @@ -642,6 +642,35 @@ void put() } } { + // cfcmov + const struct Tbl { + uint8_t code; + const char *suf; + } tbl[] = { + {0x40, "o"}, + {0x41, "no"}, + {0x42, "b"}, + {0x43, "nb"}, + {0x44, "z"}, + {0x45, "nz"}, + {0x46, "be"}, + {0x47, "nbe"}, + {0x48, "s"}, + {0x49, "ns"}, + {0x4A, "p"}, + {0x4B, "np"}, + {0x4C, "l"}, + {0x4D, "nl"}, + {0x4E, "le"}, + {0x4F, "nle"}, + }; + for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) { + const Tbl *p = &tbl[i]; + printf("void cfcmov%s(const Operand& op1, const Operand& op2) { opCfcmov(Reg(), op1, op2, 0x%02X); }\n", p->suf, p->code); + printf("void cfcmov%s(const Reg& d, const Reg& r, const Operand& op) { opCfcmov(d|T_nf, op, r, 0x%02X); }\n", p->suf, p->code); + } + } + { const struct Tbl { const char *name; uint8_t code; |