mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-16 16:28:59 +00:00
Test logical immediates.
This commit is contained in:
parent
8f580c256c
commit
6330caffde
@ -332,6 +332,23 @@ NSString *condition(uint32_t code) {
|
|||||||
|
|
||||||
#undef ArithImm
|
#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) \
|
#define ABCz(x) \
|
||||||
case Operation::x: \
|
case Operation::x: \
|
||||||
AssertEqualOperationName(operation, @#x); \
|
AssertEqualOperationName(operation, @#x); \
|
||||||
|
Loading…
Reference in New Issue
Block a user