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

NEG

T2 arm64 alu insn
AArch64 A64 Instruction: NEG
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, NEON

Summary

AArch64 NEG instruction (A64, 32-bit) with 8 encoding variants extracted from LLVM TableGen. Extensions: NEON.

Syntax / Encoding

NEGv16i8: neg $Rd.16b, $Rn.16b
NEGv1i64: neg $Rd, $Rn
NEGv2i32: neg $Rd.2s, $Rn.2s
NEGv2i64: neg $Rd.2d, $Rn.2d
NEGv4i16: neg $Rd.4h, $Rn.4h
NEGv4i32: neg $Rd.4s, $Rn.4s
NEGv8i16: neg $Rd.8h, $Rn.8h
NEGv8i8: neg $Rd.8b, $Rn.8b

Cross-Chip Latency & Throughput (4 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Apple M1 Firestorm (P-core)1–20.16711 - - u1-6apple_dougallj
Apple M1 Icestorm (E-core)1–20.33311 - - u1-3apple_dougallj
NVIDIA Olympus (Vera)20.171OlympusUnitVllvm_sched_models
Qualcomm Oryon20.251ORYONFP0123llvm_sched_models

Binary Encodings (8)

WidthFormatBit PatternMask / Match
32NEGv16i80110111000100000101110xxxxxxxxxx0xfffffc00 / 0x6e20b800
32NEGv1i640111111011100000101110xxxxxxxxxx0xfffffc00 / 0x7ee0b800
32NEGv2i320010111010100000101110xxxxxxxxxx0xfffffc00 / 0x2ea0b800
32NEGv2i640110111011100000101110xxxxxxxxxx0xfffffc00 / 0x6ee0b800
32NEGv4i160010111001100000101110xxxxxxxxxx0xfffffc00 / 0x2e60b800
32NEGv4i320110111010100000101110xxxxxxxxxx0xfffffc00 / 0x6ea0b800
32NEGv8i160110111001100000101110xxxxxxxxxx0xfffffc00 / 0x6e60b800
32NEGv8i80010111000100000101110xxxxxxxxxx0xfffffc00 / 0x2e20b800

Operands

NameDescription
Rd
Rn
Rd
Rn
Rd
Rn