From 96847c9d1f17d745fd1538ee18c9411df0e2b138 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 13 Apr 2025 18:54:11 -0700 Subject: l2 cache management instructions are system and undocumented --- tests/from_brain.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/from_brain.rs') diff --git a/tests/from_brain.rs b/tests/from_brain.rs index 987bef7..7812247 100644 --- a/tests/from_brain.rs +++ b/tests/from_brain.rs @@ -1435,6 +1435,12 @@ fn inst_1010() { test_display(&0b1010_0110000_00010_11_0_00100_000_01011u32.to_le_bytes(), "{ l2fetch(r2, r4) }"); test_invalid(&0b1010_0110000_00010_11_0_00100_001_01011u32.to_le_bytes(), DecodeError::InvalidOpcode); test_display(&0b1010_0110100_00010_11_0_00100_000_01011u32.to_le_bytes(), "{ l2fetch(r2, r5:4) }"); + test_display(&0b1010_0110101_00010_11_0_00100_000_01011u32.to_le_bytes(), "{ l2gclean(r5:4) }"); + test_display(&0b1010_0110110_00010_11_0_00100_000_01011u32.to_le_bytes(), "{ l2gcleaninv(r5:4) }"); + test_display(&0b1010_1000001_00010_11_0_00000_000_01011u32.to_le_bytes(), "{ l2kill }"); + test_display(&0b1010_1000001_00010_11_0_01000_000_01011u32.to_le_bytes(), "{ l2gunlock }"); + test_display(&0b1010_1000001_00010_11_0_10000_000_01011u32.to_le_bytes(), "{ l2gclean }"); + test_display(&0b1010_1000001_00010_11_0_11000_000_01011u32.to_le_bytes(), "{ l2gcleaninv }"); test_display(&0b1010_0101000_00010_11_1_00100_000_01011u32.to_le_bytes(), "{ memb(r2+#1291) = r4 }"); test_display(&0b1010_0101010_00010_11_1_00100_000_01011u32.to_le_bytes(), "{ memh(r2+#2582) = r4 }"); @@ -1452,7 +1458,6 @@ fn inst_1010() { test_invalid(&0b1010_1000000_00010_11_1_00000_001_01011u32.to_le_bytes(), DecodeError::InvalidOpcode); test_invalid(&0b1010_1000000_00010_11_1_00000_010_01011u32.to_le_bytes(), DecodeError::InvalidOpcode); test_invalid(&0b1010_1000000_00010_11_1_00000_100_01011u32.to_le_bytes(), DecodeError::InvalidOpcode); - test_invalid(&0b1010_1000001_00010_11_1_00000_100_01011u32.to_le_bytes(), DecodeError::InvalidOpcode); test_display(&0b1010_1000010_00010_11_1_00000_111_01011u32.to_le_bytes(), "{ syncht }"); test_display(&0b1010_1001000_00010_11_1_00011_000_00010u32.to_le_bytes(), "{ memb(r2++I:circ(m1)) = r3 }"); -- cgit v1.1