summaryrefslogtreecommitdiff
path: root/tests/from_brain.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2025-04-09 22:02:49 -0700
committeriximeow <me@iximeow.net>2025-04-09 22:02:49 -0700
commitb9520a10c6086f9aa0417c9f9fbec42029f0dd20 (patch)
tree937f398dd7c84729dbdf059b3381fd58adfe2aff /tests/from_brain.rs
parent8f485c856fae8fef283f5391b49fcc0db8288ea5 (diff)
control, gpr register names, readme
Diffstat (limited to 'tests/from_brain.rs')
-rw-r--r--tests/from_brain.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/from_brain.rs b/tests/from_brain.rs
index 6a5dd17..213d189 100644
--- a/tests/from_brain.rs
+++ b/tests/from_brain.rs
@@ -122,10 +122,10 @@ fn inst_0011() {
test_display(&0b0011_1000100_00100_11_1_0_0010_101_11111u32.to_le_bytes(), "{ if (!P1) memb(R4+#5) = #-1 }");
test_invalid(&0b0011_1000111_00100_11_1_0_0010_101_11111u32.to_le_bytes(), DecodeError::InvalidOpcode);
- test_display(&0b0011_1010000_00100_11_1_0_0010_100_11111u32.to_le_bytes(), "{ R31 = memb(R4 + R2<<3) }");
+ test_display(&0b0011_1010000_00100_11_1_0_0010_100_11111u32.to_le_bytes(), "{ LR = memb(R4 + R2<<3) }");
test_display(&0b0011_1010001_00100_11_1_0_0010_100_11110u32.to_le_bytes(), "{ R31:30 = memub(R4 + R2<<3) }");
- test_display(&0b0011_1011010_00100_11_1_0_0010_100_11110u32.to_le_bytes(), "{ memh(R4 + R2<<3) = R30 }");
+ test_display(&0b0011_1011010_00100_11_1_0_0010_100_11110u32.to_le_bytes(), "{ memh(R4 + R2<<3) = FP }");
test_display(&0b0011_1011011_00100_11_1_0_0010_100_11110u32.to_le_bytes(), "{ memh(R4 + R2<<3) = R30.H }");
test_display(&0b0011_1011101_00100_11_1_0_0010_100_10110u32.to_le_bytes(), "{ memw(R4 + R2<<3) = R6.new }");