diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-11-23 16:37:44 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-11-23 16:37:44 +0900 |
commit | c1c15848cedf6b997ce9a9c795aa432ba47cbde9 (patch) | |
tree | 3e37c2ce783ea1bd3b5e115dc436983a15da888f /gen/gen_code.cpp | |
parent | be319626ba9cf12060a9733a93c6337593b22bb6 (diff) | |
download | xbyak-c1c15848cedf6b997ce9a9c795aa432ba47cbde9.tar.gz xbyak-c1c15848cedf6b997ce9a9c795aa432ba47cbde9.zip |
remove warnings
Diffstat (limited to 'gen/gen_code.cpp')
-rw-r--r-- | gen/gen_code.cpp | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/gen/gen_code.cpp b/gen/gen_code.cpp index 4ea4790..5de1b7c 100644 --- a/gen/gen_code.cpp +++ b/gen/gen_code.cpp @@ -894,9 +894,9 @@ void put() std::string s = type2String(type); printf("void %s(const Operand& op) { opRext(op, 0, %d, %s, 0x%02X); }\n", p->name, p->ext, s.c_str(), p->code); if (p->n == 2) { - uint64_t type = T_VEX|T_ND1|T_CODE1_IF1; + type = T_VEX|T_ND1|T_CODE1_IF1; if (p->NF) type |= T_NF; - std::string s = type2String(type); + s = type2String(type); printf("void %s(const Reg& d, const Operand& op) { opROO(d, op, Reg(%d, Operand::REG, d.getBit()), %s, 0xF6); }\n", p->name, p->ext, s.c_str()); } } @@ -1912,24 +1912,26 @@ void put64() put_jREGz("ecx", true); put_jREGz("rcx", false); - const GenericTbl tbl[] = { - { "cdqe", 0x48, 0x98 }, - { "cqo", 0x48, 0x99 }, - { "cmpsq", 0x48, 0xA7 }, - { "popfq", 0x9D }, - { "pushfq", 0x9C }, - { "lodsq", 0x48, 0xAD }, - { "movsq", 0x48, 0xA5 }, - { "scasq", 0x48, 0xAF }, - { "stosq", 0x48, 0xAB }, - { "syscall", 0x0F, 0x05 }, - { "sysret", 0x0F, 0x07 }, - { "clui", 0xF3, 0x0F, 0x01, 0xEE }, - { "stui", 0xF3, 0x0F, 0x01, 0xEF }, - { "testui", 0xF3, 0x0F, 0x01, 0xED }, - { "uiret", 0xF3, 0x0F, 0x01, 0xEC }, - }; - putGeneric(tbl, NUM_OF_ARRAY(tbl)); + { + const GenericTbl tbl[] = { + { "cdqe", 0x48, 0x98 }, + { "cqo", 0x48, 0x99 }, + { "cmpsq", 0x48, 0xA7 }, + { "popfq", 0x9D }, + { "pushfq", 0x9C }, + { "lodsq", 0x48, 0xAD }, + { "movsq", 0x48, 0xA5 }, + { "scasq", 0x48, 0xAF }, + { "stosq", 0x48, 0xAB }, + { "syscall", 0x0F, 0x05 }, + { "sysret", 0x0F, 0x07 }, + { "clui", 0xF3, 0x0F, 0x01, 0xEE }, + { "stui", 0xF3, 0x0F, 0x01, 0xEF }, + { "testui", 0xF3, 0x0F, 0x01, 0xED }, + { "uiret", 0xF3, 0x0F, 0x01, 0xEC }, + }; + putGeneric(tbl, NUM_OF_ARRAY(tbl)); + } putMemOp("cmpxchg16b", "T_0F", 1, 0xC7, 64); putMemOp("fxrstor64", "T_0F", 1, 0xAE, 64); |