MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / initMmxTest

Function initMmxTest

source/test/testMMX.cpp:74–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72#endif
73
74void initMmxTest() {
75 newInstruction(0);
76 memory->writeq(cpu->seg[DS].address, MMX_MEM_VALUE64_DEFAULT);
77 memory->writeq(cpu->seg[DS].address+MMX_MEM_VALUE64_OFFSET, MMX_MEM_VALUE64);
78 memory->writed(cpu->seg[DS].address+MMX_MEM_VALUE32_OFFSET, MMX_MEM_VALUE32);
79 for (int i=0;i<8;i++) {
80 // movq mm0, QWORD PTR ds:0x0
81 pushCode8(0x0f);
82 pushCode8(0x6F);
83 pushCode8(0x04 | (i<<3));
84 pushCode8(0x25);
85 pushCode32(0);
86 }
87 cpu->big = 1;
88}
89
90void loadMMX(U8 reg, U32 index, U64 value) {
91 memory->writeq(cpu->seg[DS].address+MMX_MEM_VALUE_TMP_OFFSET+index*16, value);

Callers 13

testMMX.cppFile · 0.85
testMmxMovdToEFunction · 0.85
testMmx64Function · 0.85
testMmx64RegFunction · 0.85
testMmx64Eimm8Function · 0.85
testRegMmx64imm8Function · 0.85
testMmx64imm8Function · 0.85
testMmx64imm8SubFunction · 0.85
testMmxMovqToEFunction · 0.85
testSseMmx64Function · 0.85
testSseMmx64rFunction · 0.85
testMovntq3e7Function · 0.85

Calls 5

newInstructionFunction · 0.85
pushCode8Function · 0.85
pushCode32Function · 0.85
writeqMethod · 0.80
writedMethod · 0.45

Tested by

no test coverage detected