aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2024-10-14 11:52:20 +0900
committerMITSUNARI Shigeo <[email protected]>2024-10-14 11:52:20 +0900
commit5582082d7b925a29298881c2ba457cec5c0eb8f1 (patch)
tree2a68e46ce51c63b9fb4cfd4bcc1b5a26425f7dd5
parentde32c7e99f412f3935cadd69fb2e19fdb6929475 (diff)
downloadxbyak-5582082d7b925a29298881c2ba457cec5c0eb8f1.tar.gz
xbyak-5582082d7b925a29298881c2ba457cec5c0eb8f1.zip
tweak
-rw-r--r--gen/gen_code.cpp1
-rw-r--r--xbyak/xbyak.h4
-rw-r--r--xbyak/xbyak_mnemonic.h1
3 files changed, 2 insertions, 4 deletions
diff --git a/gen/gen_code.cpp b/gen/gen_code.cpp
index a22c12b..e72df50 100644
--- a/gen/gen_code.cpp
+++ b/gen/gen_code.cpp
@@ -1443,6 +1443,7 @@ void put()
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) { opSSE_APX(x, op, T_0F3A, 0xCC, T_MUST_EVEX, 0xD4, imm); }");
+ puts("void sha1msg12(const Xmm& x, const Operand& op) { opROO(Reg(), op, x, T_MUST_EVEX, 0xD9); }");
}
// (m, x), (m, y)
{
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h
index 774f147..17a9597 100644
--- a/xbyak/xbyak.h
+++ b/xbyak/xbyak.h
@@ -3176,10 +3176,6 @@ public:
void setDefaultEncoding(PreferredEncoding vnniEnc = EvexEncoding, PreferredEncoding avx10Enc = VexEncoding)
{ defaultEncoding_[0] = vnniEnc; defaultEncoding_[1] = avx10Enc; }
- void sha1msg12(const Xmm& x, const Operand& op)
- {
- opROO(Reg(), op, x, T_MUST_EVEX, 0xD9);
- }
void bswap(const Reg32e& r)
{
int idx = r.getIdx();
diff --git a/xbyak/xbyak_mnemonic.h b/xbyak/xbyak_mnemonic.h
index f9a038a..07ef43e 100644
--- a/xbyak/xbyak_mnemonic.h
+++ b/xbyak/xbyak_mnemonic.h
@@ -988,6 +988,7 @@ void sets(const Operand& op) { opSetCC(op, 8); }//-V524
void setz(const Operand& op) { opSetCC(op, 4); }//-V524
void sfence() { db(0x0F); db(0xAE); db(0xF8); }
void sha1msg1(const Xmm& x, const Operand& op) { opSSE_APX(x, op, T_0F38, 0xC9, T_MUST_EVEX, 0xD9); }
+void sha1msg12(const Xmm& x, const Operand& op) { opROO(Reg(), op, x, T_MUST_EVEX, 0xD9); }
void sha1msg2(const Xmm& x, const Operand& op) { opSSE_APX(x, op, T_0F38, 0xCA, T_MUST_EVEX, 0xDA); }
void sha1nexte(const Xmm& x, const Operand& op) { opSSE_APX(x, op, T_0F38, 0xC8, T_MUST_EVEX, 0xD8); }
void sha1rnds4(const Xmm& x, const Operand& op, uint8_t imm) { opSSE_APX(x, op, T_0F3A, 0xCC, T_MUST_EVEX, 0xD4, imm); }