1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-17 10:06:21 +00:00

Test logical immediates.

This commit is contained in:
Thomas Harte 2022-04-01 17:52:38 -04:00
parent 8f580c256c
commit 6330caffde

View File

@ -332,6 +332,23 @@ NSString *condition(uint32_t code) {
#undef ArithImm
#define LogicImm(x) \
case Operation::x: { \
AssertEqualOperationName(operation, @#x); \
AssertEqualR(columns[3], instruction.rA()); \
AssertEqualR(columns[4], instruction.rS()); \
XCTAssertEqual([columns[5] hexInt], instruction.uimm()); \
} break;
LogicImm(andi_);
LogicImm(andis_);
LogicImm(ori);
LogicImm(oris);
LogicImm(xori);
LogicImm(xoris);
#undef ArithImm
#define ABCz(x) \
case Operation::x: \
AssertEqualOperationName(operation, @#x); \