aboutsummaryrefslogtreecommitdiff
path: root/tests/armv8
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-03-16 21:10:00 +0000
committeriximeow <me@iximeow.net>2024-03-16 21:12:02 +0000
commitf551a6bed26e1c5e9938a1c45b47f1531ed64555 (patch)
treec35fe9b778c6dcb15a85340e2886eeba48c6286e /tests/armv8
parent507a1c14b335a273304070289cb35a4bef7d1de3 (diff)
fix movi (immediate) to unpack immediate correctly
.... and add tests that exercise movi with an immediate other than 0
Diffstat (limited to 'tests/armv8')
-rw-r--r--tests/armv8/a64.rs2
1 files changed, 2 insertions, 0 deletions
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);