aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoman Dubtsov <[email protected]>2017-05-26 05:57:14 +0300
committerRoman Dubtsov <[email protected]>2017-08-07 11:40:02 +0300
commit99a7abb8af8ec26fba8a03cb1754c4e339d5c612 (patch)
treed5829ff4787552b1b5fafcb7e522aeb38d9adc52
parentccdd680cd12ccb5d3d34c1f140272a7b32d7227e (diff)
downloadxbyak-99a7abb8af8ec26fba8a03cb1754c4e339d5c612.tar.gz
xbyak-99a7abb8af8ec26fba8a03cb1754c4e339d5c612.zip
add prefetchw
-rw-r--r--gen/gen_code.cpp1
-rw-r--r--xbyak/xbyak_mnemonic.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/gen/gen_code.cpp b/gen/gen_code.cpp
index c978bd5..d8c8ebc 100644
--- a/gen/gen_code.cpp
+++ b/gen/gen_code.cpp
@@ -543,6 +543,7 @@ void put()
{ 3, "t2", 0x18},
{ 0, "nta", 0x18},
{ 2, "wt1", 0x0D},
+ { 1, "w", 0x0D},
};
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 dba60ec..c19f7f7 100644
--- a/xbyak/xbyak_mnemonic.h
+++ b/xbyak/xbyak_mnemonic.h
@@ -591,6 +591,7 @@ 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); }
void prefetcht2(const Address& addr) { opModM(addr, Reg32(3), 0x0F, 0x18); }
+void prefetchw(const Address& addr) { opModM(addr, Reg32(1), 0x0F, 0x0D); }
void prefetchwt1(const Address& addr) { opModM(addr, Reg32(2), 0x0F, 0x0D); }
void psadbw(const Mmx& mmx, const Operand& op) { opMMX(mmx, op, 0xF6); }
void pshufb(const Mmx& mmx, const Operand& op) { opMMX(mmx, op, 0x00, 0x66, NONE, 0x38); }