40 lines
753 B
C++
40 lines
753 B
C++
#include "test-common.h"
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
// CNST
|
|
// dst - 0, Direct
|
|
// imm - 0x4567
|
|
//
|
|
// LONG
|
|
// dst - 0, Direct
|
|
// a - 0, Direct
|
|
{
|
|
foot::Emulator emu = run_instructions({ 0x00204567, 0x01200320 });
|
|
if (!check(0x00000000, emu.register_at(0))) { return 1; }
|
|
}
|
|
|
|
// LONG
|
|
// dst - 0, Direct
|
|
// a - 0, Direct
|
|
{
|
|
foot::Emulator emu = run_instruction(0x01200320);
|
|
if (!check(0x00000001, emu.register_at(0))) { return 1; }
|
|
}
|
|
|
|
// CNST
|
|
// dst - 0, Direct
|
|
// imm - 0x0230
|
|
//
|
|
// LONG 4-bit SIMD
|
|
// dst - 0, Direct
|
|
// a - 0, Direct
|
|
{
|
|
foot::Emulator emu = run_instructions({ 0x00200230, 0x01A003A0 });
|
|
if (!check(0x11111001, emu.register_at(0))) { return 1; }
|
|
}
|
|
|
|
|
|
return 0;
|
|
}
|