From 5582082d7b925a29298881c2ba457cec5c0eb8f1 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 14 Oct 2024 11:52:20 +0900 Subject: tweak --- gen/gen_code.cpp | 1 + xbyak/xbyak.h | 4 ---- xbyak/xbyak_mnemonic.h | 1 + 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); } -- cgit v1.2.3