ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

ANDS

T2 arm64 bitmanip insn
AArch64 A64 Instruction: ANDS
SourceLLVM AArch64 Instruction & Feature Definitions (llvm_aarch64_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeArmv8-A / Armv9-A (A64)
Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
License & VersionApache-2.0 WITH LLVM-exception
llvm/main
Upstreamhttps://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/AArch64
Privilegeuser
ExtensionsA64

Summary

AArch64 ANDS instruction (A64, 32-bit) with 4 encoding variants extracted from LLVM TableGen.

Syntax / Encoding

ANDSWri: ands $Rd, $Rn, $imm
ANDSWrs: ands $Rd, $Rn, $Rm_and_shift

Cross-Chip Latency & Throughput (4 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Apple M1 Firestorm (P-core)1–20.33311 - - u1-3apple_dougallj
Apple M1 Icestorm (E-core)1–20.511 - - u1-3apple_dougallj
Qualcomm Oryon10.251ORYONI0123llvm_sched_models
Fujitsu A64FX (SVE 512b)311A64FXGI1llvm_sched_models

Binary Encodings (4)

WidthFormatBit PatternMask / Match
32ANDSWri0111001000xxxxxxxxxxxxxxxxxxxxxx0xffc00000 / 0x72000000
32ANDSWrs01101010xx0xxxxxxxxxxxxxxxxxxxxx0xff200000 / 0x6a000000
32ANDSXri111100100xxxxxxxxxxxxxxxxxxxxxxx0xff800000 / 0xf2000000
32ANDSXrs11101010xx0xxxxxxxxxxxxxxxxxxxxx0xff200000 / 0xea000000

Operands

NameDescription
Rd
Rn
imm
Rm_and_shift
Rd
Rn
imm