diff options
author | iximeow <me@iximeow.net> | 2025-03-19 19:15:52 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2025-03-19 19:15:52 -0700 |
commit | 8e73e3eacaab4db14d32439fef4e7be13c973715 (patch) | |
tree | ad4551064cad63cb31e749ecbe3dece167d3f9a4 /tests/from_brain.rs | |
parent | 3dca3441fd3a21290eb2920b3d8c03cb9ea241f8 (diff) |
moderate progress...
Diffstat (limited to 'tests/from_brain.rs')
-rw-r--r-- | tests/from_brain.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/from_brain.rs b/tests/from_brain.rs index 90a3d1d..8473617 100644 --- a/tests/from_brain.rs +++ b/tests/from_brain.rs @@ -527,6 +527,15 @@ fn inst_1011() { test_display(&0b1011_1000001_00100_11_1_0_0000_001_10110u32.to_le_bytes(), "{ R22 = add(R4, #-31999) }"); } +#[test] +fn inst_1100() { + test_display(&0b1100_0000_000_00100_11_0_1_0000_010_10110u32.to_le_bytes(), "{ R23:22 = valignb(R17:16, R5:4, #2) }"); + test_display(&0b1100_0000_100_00100_11_0_1_0000_010_10110u32.to_le_bytes(), "{ R23:22 = vspliceb(R5:4, R17:16, #2) }"); + test_display(&0b1100_0001_000_00100_11_0_1_0000_000_10110u32.to_le_bytes(), "{ R23:22 = extractu(R5:4, R17:16) }"); + test_display(&0b1100_0001_000_00100_11_0_1_0000_010_10110u32.to_le_bytes(), "{ R23:22 = shuffeb(R5:4, R17:16) }"); + test_display(&0b1100_0001_000_00100_11_0_1_0000_100_10110u32.to_le_bytes(), "{ R23:22 = shuffob(R17:16, R5:4) }"); + test_display(&0b1100_0001_000_00100_11_0_1_0000_110_10110u32.to_le_bytes(), "{ R23:22 = shuffeh(R17:16, R5:4) }"); +} #[test] fn inst_1111() { |