foot/emulator/tests/band-instruction.cpp
shylie 80d83f2062
All checks were successful
Test / build (push) Successful in 13s
Add SIMD instruction variants
2025-08-17 11:18:08 -04:00

24 lines
418 B
C++

#include "test-common.h"
int main(int argc, char** argv)
{
// CNST
// dst - 0, Direct
// imm - 0x4567
//
// CNST
// dst - 1, Direct
// imm - 0x2345
//
// BAND
// dst - 0, Direct
// a - 0, Direct
// b - 1, Direct
{
foot::Emulator emu = run_instructions({ 0x00204567, 0x00212345, 0x03202021 });
if (!check(0x00004567 & 0x00002345, emu.register_at(0))) { return 1; }
}
return 0;
}