diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-11-09 13:42:17 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-11-09 13:42:17 +0900 |
commit | 5d46b950b46f56f702f02f482028a64856cbeae7 (patch) | |
tree | e3b719786b3e62cc3992ff68c791e6ccfa0e8458 /gen | |
parent | 0a8ea9edf7842b460d73acb3480b2c093d93eb1b (diff) | |
download | xbyak-5d46b950b46f56f702f02f482028a64856cbeae7.tar.gz xbyak-5d46b950b46f56f702f02f482028a64856cbeae7.zip |
the type of all type is uint64_t
Diffstat (limited to 'gen')
-rw-r--r-- | gen/avx_type.hpp | 2 | ||||
-rw-r--r-- | gen/avx_type_def.h | 2 | ||||
-rw-r--r-- | gen/gen_avx512.cpp | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/gen/avx_type.hpp b/gen/avx_type.hpp index 4436f28..6453b81 100644 --- a/gen/avx_type.hpp +++ b/gen/avx_type.hpp @@ -66,7 +66,7 @@ std::string type2String(uint64_t type) if (type & T_VSIB) str += "|T_VSIB"; if (type & T_MEM_EVEX) str += "|T_MEM_EVEX"; if (type & T_NF) str += "|T_NF"; - if (type & T_NO_OR1) str += "|T_NO_OR1"; + if (type & T_CODE1_IF1) str += "|T_CODE1_IF1"; if (str[0] == '|') str = str.substr(1); return str; diff --git a/gen/avx_type_def.h b/gen/avx_type_def.h index 5e74a93..80c6623 100644 --- a/gen/avx_type_def.h +++ b/gen/avx_type_def.h @@ -43,7 +43,7 @@ static const uint64_t T_MAP5 = T_FP16 | T_0F; static const uint64_t T_MAP6 = T_FP16 | T_0F38; static const uint64_t T_NF = 1ull << 32; // T_nf - static const uint64_t T_NO_OR1 = 1ull << 33; // does not "code | 1" + static const uint64_t T_CODE1_IF1 = 1ull << 33; // code|=1 if !r.isBit(8) // T_66 = 1, T_F3 = 2, T_F2 = 3 static inline uint32_t getPP(uint64_t type) { return (type >> 5) & 3; } // @@@end of avx_type_def.h diff --git a/gen/gen_avx512.cpp b/gen/gen_avx512.cpp index 7c4d9ba..8463543 100644 --- a/gen/gen_avx512.cpp +++ b/gen/gen_avx512.cpp @@ -914,21 +914,21 @@ void putFP16_FMA2() }; for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) { for (int j = 0; j < 2; j++) { - int t = T_MAP6 | T_EW0 | T_MUST_EVEX; + uint64_t type = T_MAP6 | T_EW0 | T_MUST_EVEX; if (j == 0) { - t |= T_F2; + type |= T_F2; } else { - t |= T_F3; + type |= T_F3; } const char *suf = 0; if (tbl[i].isPH) { - t |= T_ER_Z | T_YMM | T_B32; + type |= T_ER_Z | T_YMM | T_B32; suf = "ph"; } else { - t |= T_ER_X | T_N2; + type |= T_ER_X | T_N2; suf = "sh"; } - std::string s = type2String(t); + std::string s = type2String(type); printf("void vf%s%s%s(const Xmm& x1, const Xmm& x2, const Operand& op) { opAVX_X_X_XM(x1, x2, op, %s, 0x%02X); }\n" , j == 0 ? "c" : "", tbl[i].name, suf, s.c_str(), tbl[i].code); } |