From f551a6bed26e1c5e9938a1c45b47f1531ed64555 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 16 Mar 2024 21:10:00 +0000 Subject: fix movi (immediate) to unpack immediate correctly .... and add tests that exercise movi with an immediate other than 0 --- tests/armv8/a64.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/armv8/a64.rs b/tests/armv8/a64.rs index 6af5291..3f8c4e4 100644 --- a/tests/armv8/a64.rs +++ b/tests/armv8/a64.rs @@ -4331,6 +4331,8 @@ fn test_movi() { ([0x01, 0xe4, 0x00, 0x6f], "movi v1.2d, #0x0"), ([0x02, 0xe4, 0x00, 0x6f], "movi v2.2d, #0x0"), ([0x03, 0xe4, 0x00, 0x2f], "movi d3, #0x0"), + ([0x23, 0xe4, 0x00, 0x2f], "movi d3, #0xff"), + ([0xa3, 0xe4, 0x00, 0x2f], "movi d3, #0xff00ff"), ]; let errs = run_tests(TESTS); -- cgit v1.1