aboutsummaryrefslogtreecommitdiffhomepage
path: root/gen/gen_code.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2023-12-19 17:03:19 +0900
committerMITSUNARI Shigeo <[email protected]>2023-12-19 17:03:19 +0900
commitd9c7c992f1fb4d68453f5d508e5a287c85075518 (patch)
tree08ddba74f04e98efae054e6ac7149aaa84d66807 /gen/gen_code.cpp
parentcd5231de096408cb82c747761e55d80188ac639b (diff)
downloadxbyak-d9c7c992f1fb4d68453f5d508e5a287c85075518.tar.gz
xbyak-d9c7c992f1fb4d68453f5d508e5a287c85075518.zip
add aesdecwide{128,256}kl
Diffstat (limited to 'gen/gen_code.cpp')
-rw-r--r--gen/gen_code.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/gen/gen_code.cpp b/gen/gen_code.cpp
index cdf015c..52baff9 100644
--- a/gen/gen_code.cpp
+++ b/gen/gen_code.cpp
@@ -2020,21 +2020,21 @@ void put64()
uint64_t type1;
uint64_t type2;
uint8_t code;
- int n;
+ int idx;
} tbl[] = {
- { "aesdec128kl", T_F3|T_0F38, T_MUST_EVEX|T_F3, 0xDD, 2 },
- { "aesdec256kl", T_F3|T_0F38, T_MUST_EVEX|T_F3, 0xDF, 2 },
+ { "aesdec128kl", T_F3|T_0F38, T_MUST_EVEX|T_F3, 0xDD, 8 },
+ { "aesdec256kl", T_F3|T_0F38, T_MUST_EVEX|T_F3, 0xDF, 8 },
+ { "aesdecwide128kl", T_F3|T_0F38, T_MUST_EVEX|T_F3, 0xD8, 1 },
+ { "aesdecwide256kl", T_F3|T_0F38, T_MUST_EVEX|T_F3, 0xD8, 3 },
};
for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) {
const Tbl *p = &tbl[i];
std::string s1 = type2String(p->type1);
std::string s2 = type2String(p->type2);
- switch (p->n) {
- case 1:
- break;
- case 2:
+ 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);
- break;
+ } 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);
}
}
}