diff options
author | iximeow <me@iximeow.net> | 2020-10-11 18:27:48 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-10-11 18:27:48 -0700 |
commit | ef761196ae6666f2c8067370d28a1d270ed7f666 (patch) | |
tree | 63cb3228c1df7f2b14709df4294c336eec2ec9f3 /tests | |
parent | 37617948420982554928e4ba3213f489c2f5054e (diff) |
fix reversed l/x instruction word order and immediate decode
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test.rs b/tests/test.rs index 686d94b..24a1937 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -11,6 +11,15 @@ fn test_addl_imm() { assert_eq!(format!("{}", inst), expected); } #[test] +fn test_mlx_bundle() { + let decoder = InstDecoder::default(); + + let expected = "[MLX] alloc r34=ar.pfs,5,5,0; movl r32=0xfffffffffffff5f8;;"; + let data = [0x05, 0x10, 0x15, 0x0a, 0x80, 0xc5, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x84, 0xf7, 0xaf, 0x6f]; + let inst = decoder.decode(data[..].iter().cloned()).unwrap(); + assert_eq!(format!("{}", inst), expected); +} +#[test] fn test_a_bundle() { // from elf64-ia64-vms.c // [MMI] addl r15=0,r1;; |