aboutsummaryrefslogtreecommitdiff
path: root/test/armv8
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-12-29 02:14:28 -0800
committeriximeow <me@iximeow.net>2021-12-29 02:14:28 -0800
commit435743171b26d89c5df6b77689b136ca91cf7b56 (patch)
tree47dd8b5106ed5ba4728e213acacc10ff8d358e2a /test/armv8
parentd040eddf4f31583032b27d3dd51cc341a14e7299 (diff)
more armv8.1 instructions, fix cas operand check
Diffstat (limited to 'test/armv8')
-rw-r--r--test/armv8/a64.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/armv8/a64.rs b/test/armv8/a64.rs
index 2ee09c7..92115e0 100644
--- a/test/armv8/a64.rs
+++ b/test/armv8/a64.rs
@@ -4377,6 +4377,21 @@ fn test_mismatches() {
fn test_cas() {
const TESTS: &[([u8; 4], &'static str)] = &[
([0x20, 0x7c, 0x20, 0x08], "casp w0, w1, w0, w1, [x1]"),
+ ([0x01, 0x7c, 0xa0, 0x08], "casb w0, w1, [x0]"),
+ ];
+ let errs = run_tests(TESTS);
+
+ for err in errs.iter() {
+ println!("{}", err);
+ }
+
+ assert!(errs.is_empty());
+}
+
+#[test]
+fn test_stll() {
+ const TESTS: &[([u8; 4], &'static str)] = &[
+ ([0x00, 0x7c, 0x9f, 0x08], "stllrb w0, [x0]"),
];
let errs = run_tests(TESTS);