From ef6669fbb550fc4e28a8bb92df370e3522c82054 Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Sun, 14 Jun 2026 15:19:50 +0000 Subject: [PATCH] AArch64: Add support for vorr with immediate - Resolves #455 Signed-off-by: Matthias J. Kannwischer --- slothy/targets/aarch64/aarch64_neon.py | 5 +++++ tests/naive/aarch64/instructions.s | 1 + 2 files changed, 6 insertions(+) diff --git a/slothy/targets/aarch64/aarch64_neon.py b/slothy/targets/aarch64/aarch64_neon.py index 670c1cfd8..71697fef6 100644 --- a/slothy/targets/aarch64/aarch64_neon.py +++ b/slothy/targets/aarch64/aarch64_neon.py @@ -3607,6 +3607,11 @@ class vorr(AArch64NeonLogical): outputs = ["Vd"] +class vorr_imm(AArch64NeonLogical): + pattern = "orr .
, " + in_outs = ["Vda"] + + class vorn(AArch64NeonLogical): pattern = "orn .
, .
, .
" inputs = ["Va", "Vb"] diff --git a/tests/naive/aarch64/instructions.s b/tests/naive/aarch64/instructions.s index 264125042..c80367358 100644 --- a/tests/naive/aarch64/instructions.s +++ b/tests/naive/aarch64/instructions.s @@ -44,6 +44,7 @@ bic v0.8h, 0xf0, lsl #8 mvn v22.16b, v23.16b orr v24.16b, v25.16b, v26.16b +orr v0.4s, #1 orn v27.16b, v28.16b, v29.16b eor v30.16b, v31.16b, v0.16b ext v0.16b, v1.16b, v2.16b, #8