ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 919 microarchs · 15,488 chips · 105 sources
Arch:
Tier:

CTZ.D

T2 loongarch bitmanip insn
LoongArch LA64 Instruction: CTZ.D
SourceLLVM LoongArch64 (LA64/LSX/LASX) Instruction & Feature Definitions (llvm_loongarch_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeLoongArch64 v1.10 (LA64)
LoongArch64 (LA64 v1.10, LSX 128b, LASX 256b, LBT, LVZ — Loongson 3A5000/3A6000)
License & VersionApache-2.0 WITH LLVM-exception
llvm/main
Upstreamhttps://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/LoongArch
Privilegeuser
ExtensionsLA64, LA64

Summary

LoongArch CTZ.D instruction (LA64, 32-bit) with 1 encoding variant extracted from LLVM TableGen. Extensions: LA64.

Syntax / Encoding

CTZ_D: ctz.d $rd, $rj

Cross-Chip Latency & Throughput (2 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Loongson 3A5000 (LA464)10.251LA464ALUllvm_sched_models
Loongson 3A6000 (LA664)10.251LA664ALUllvm_sched_models

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32CTZ_D0000000000000000001011xxxxxxxxxx0xfffffc00 / 0x00002c00

Operands

NameDescription
rd
rj