aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2022-12-07 16:16:58 +0900
committerMITSUNARI Shigeo <[email protected]>2022-12-07 16:16:58 +0900
commitbef70d9b1b6b477b881e3c34afec0c9ec088179d (patch)
tree2325a77b38e62c3e87ce1bf7d5f219f6f41d1b2d
parentf6678587615bfca1c8aa324dc1d2c7b4d0001a4b (diff)
downloadxbyak-bef70d9b1b6b477b881e3c34afec0c9ec088179d.tar.gz
xbyak-bef70d9b1b6b477b881e3c34afec0c9ec088179d.zip
add prefetchit{0,1}
-rw-r--r--gen/gen_code.cpp2
-rw-r--r--xbyak/xbyak_mnemonic.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/gen/gen_code.cpp b/gen/gen_code.cpp
index feb7e36..9568053 100644
--- a/gen/gen_code.cpp
+++ b/gen/gen_code.cpp
@@ -560,6 +560,8 @@ void put()
{ 0, "nta", 0x18},
{ 2, "wt1", 0x0D},
{ 1, "w", 0x0D},
+ { 7, "it0", 0x18},
+ { 6, "it1", 0x18},
};
for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) {
const Tbl *p = &tbl[i];
diff --git a/xbyak/xbyak_mnemonic.h b/xbyak/xbyak_mnemonic.h
index cc657fd..2d1aede 100644
--- a/xbyak/xbyak_mnemonic.h
+++ b/xbyak/xbyak_mnemonic.h
@@ -658,6 +658,8 @@ void pmuludq(const Mmx& mmx, const Operand& op) { opMMX(mmx, op, 0xF4); }
void popcnt(const Reg&reg, const Operand& op) { opSp1(reg, op, 0xF3, 0x0F, 0xB8); }
void popf() { db(0x9D); }
void por(const Mmx& mmx, const Operand& op) { opMMX(mmx, op, 0xEB); }
+void prefetchit0(const Address& addr) { opModM(addr, Reg32(7), 0x0F, 0x18); }
+void prefetchit1(const Address& addr) { opModM(addr, Reg32(6), 0x0F, 0x18); }
void prefetchnta(const Address& addr) { opModM(addr, Reg32(0), 0x0F, 0x18); }
void prefetcht0(const Address& addr) { opModM(addr, Reg32(1), 0x0F, 0x18); }
void prefetcht1(const Address& addr) { opModM(addr, Reg32(2), 0x0F, 0x18); }