aboutsummaryrefslogtreecommitdiffhomepage
path: root/gen
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2023-12-20 15:52:42 +0900
committerMITSUNARI Shigeo <[email protected]>2023-12-20 15:57:33 +0900
commit3427be29887a6ee81dcd51add36c15cafa7e0004 (patch)
tree13416109e50fd5442274cc5b64a533884ada13fd /gen
parentbfd14244ad674c54fc701a75ae01e7ed2cbe7ce5 (diff)
downloadxbyak-3427be29887a6ee81dcd51add36c15cafa7e0004.tar.gz
xbyak-3427be29887a6ee81dcd51add36c15cafa7e0004.zip
unify opAESKL and opSHA
Diffstat (limited to 'gen')
-rw-r--r--gen/gen_code.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gen/gen_code.cpp b/gen/gen_code.cpp
index 71bd13c..d1a0bd7 100644
--- a/gen/gen_code.cpp
+++ b/gen/gen_code.cpp
@@ -1433,9 +1433,9 @@ void put()
};
for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) {
const Tbl *p = &tbl[i];
- printf("void %s(const Xmm& x, const Operand& op) { opSHA(x, op, T_0F38, 0x%02X, 0x%02X); }\n", p->name, p->code, p->code2);
+ printf("void %s(const Xmm& x, const Operand& op) { opSSE_APX(x, op, T_0F38, 0x%02X, T_MUST_EVEX, 0x%02X); }\n", p->name, p->code, p->code2);
}
- puts("void sha1rnds4(const Xmm& x, const Operand& op, uint8_t imm) { opSHA(x, op, T_0F3A, 0xCC, 0xD4, imm); }");
+ puts("void sha1rnds4(const Xmm& x, const Operand& op, uint8_t imm) { opSSE_APX(x, op, T_0F3A, 0xCC, T_MUST_EVEX, 0xD4, imm); }");
}
// (m, x), (m, y)
{
@@ -2048,9 +2048,9 @@ void put64()
std::string s1 = type2String(p->type1);
std::string s2 = type2String(p->type2);
if (p->idx == 8) {
- printf("void %s(const Xmm& x, const Address& addr) { opAESKL(&x, addr, %s, %s, 0x%02X); }\n", p->name, s1.c_str(), s2.c_str(), p->code);
+ printf("void %s(const Xmm& x, const Address& addr) { opSSE_APX(x, addr, %s, 0x%02X, %s, 0x%02X); }\n", p->name, s1.c_str(), p->code, s2.c_str(), p->code);
} else {
- printf("void %s(const Address& addr) { opAESKL(&xmm%d, addr, %s, %s, 0x%02X); }\n", p->name, p->idx, s1.c_str(), s2.c_str(), p->code);
+ printf("void %s(const Address& addr) { opSSE_APX(xmm%d, addr, %s, 0x%02X, %s, 0x%02X); }\n", p->name, p->idx, s1.c_str(), p->code, s2.c_str(), p->code);
}
}
}