summaryrefslogtreecommitdiff
path: root/tests/from_brain.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2025-04-13 19:09:05 -0700
committeriximeow <me@iximeow.net>2025-04-13 19:09:05 -0700
commit2a7d0f4dd1b7ec13fa402cf7c18dc9f62e8c4b55 (patch)
treeed33b45834dfd5e1171218d8cc32edc616049b3e /tests/from_brain.rs
parent2941adf64a78dbcc67b541c79c94144e7da0fddb (diff)
seeming good
Diffstat (limited to 'tests/from_brain.rs')
-rw-r--r--tests/from_brain.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/from_brain.rs b/tests/from_brain.rs
index 7812247..a72f561 100644
--- a/tests/from_brain.rs
+++ b/tests/from_brain.rs
@@ -878,7 +878,6 @@ fn inst_0110() {
test_display(&0b0110_0000110_00110_11_0_00010_000_01000u32.to_le_bytes(), "{ p3 = sp2loop0($+0x24, r6) }");
test_display(&0b0110_0000111_00110_11_0_00010_000_01000u32.to_le_bytes(), "{ p3 = sp3loop0($+0x24, r6) }");
- // TODO: test signed (negative) offsets
test_display(&0b0110_0001001_00110_11_1_000101_00_10110u32.to_le_bytes(), "{ if (r6!=#0) jump:nt $-0x1ad4 }");
test_display(&0b0110_0001001_00110_11_1_100101_00_10110u32.to_le_bytes(), "{ if (r6!=#0) jump:t $-0x1ad4 }");
test_display(&0b0110_0001011_00110_11_1_000101_00_10110u32.to_le_bytes(), "{ if (r6>=#0) jump:nt $-0x1ad4 }");
@@ -1263,7 +1262,6 @@ fn inst_1001() {
test_display(&0b1001_0111110_00010_11_1001_00_000_10000u32.to_le_bytes(), "{ r17:16 = memd(r2+#14592) }");
test_invalid(&0b1001_0001111_00010_11_0_00100_000_00011u32.to_le_bytes(), DecodeError::InvalidOpcode);
- // TODO: exercise these
test_display(&0b1001_1000001_00010_11_1000_00111_10000u32.to_le_bytes(), "{ r16 = membh(r2++#0xe:circ(m1)) }");
test_display(&0b1001_1000010_00010_11_1000_00111_10000u32.to_le_bytes(), "{ r17:16 = memh_fifo(r2++#0xe:circ(m1)) }");
test_display(&0b1001_1000011_00010_11_1000_00111_10000u32.to_le_bytes(), "{ r16 = memubh(r2++#0xe:circ(m1)) }");
@@ -2462,5 +2460,3 @@ fn inst_1111() {
test_display(&0b1111_1101000_00100_11_1_00011_001_00110u32.to_le_bytes(), "{ if (p1.new) r7:6 = contains(r4, r3) }");
}
-
- // TODO: testcase for Rn=add(pc,#nn)