This is a collection of Intel®’ IA32® Software Developer's Manuals (URL of the day) and AMD' AMD64 Architecture Programmer's Manual together with the related specifications, application notes, white papers, and change logs. The collection aims to keep all available revisions. It was originally created by Michal Necasek, see OS/2 Museum.

If you have a public document, related to the IA32® specifications and missing from the collection, please mail it to me. The content of this URL and all sub-ULRs is available for convenient bulk download by rsync x86docs password "" (empty).

SHA1C -- AArch32

SHA1C

SHA1 hash update (choose).

It has encodings from the following instruction sets: A32 ( A1 ) and T32 ( T1 ) .

A1
(FEAT_SHA1)

313029282726252423222120191817161514131211109876543210
111100100D00VnVd1100NQM0Vm
Usizeopco1

Encoding

SHA1C.32 <Qd>, <Qn>, <Qm>

Decode for this encoding

if !IsFeatureImplemented(FEAT_SHA1) then Undefined(); end; if Q != '1' then Undefined(); end; if Vd[0] == '1' || Vn[0] == '1' || Vm[0] == '1' then Undefined(); end; let d : integer = UInt(D::Vd); let n : integer = UInt(N::Vn); let m : integer = UInt(M::Vm);

T1
(FEAT_SHA1)

15141312111098765432101514131211109876543210
111011110D00VnVd1100NQM0Vm
Usizeopco1

Encoding

SHA1C.32 <Qd>, <Qn>, <Qm>

Decode for this encoding

if InITBlock() then UnpredictableProcedure(); end; if !IsFeatureImplemented(FEAT_SHA1) then Undefined(); end; if Q != '1' then Undefined(); end; if Vd[0] == '1' || Vn[0] == '1' || Vm[0] == '1' then Undefined(); end; let d : integer = UInt(D::Vd); let n : integer = UInt(N::Vn); let m : integer = UInt(M::Vm);

For more information about the CONSTRAINED UNPREDICTABLE behavior of this instruction, see Architectural Constraints on UNPREDICTABLE behaviors.

Assembler Symbols

<Qd>

Is the 128-bit name of the SIMD&FP destination register, encoded in the "D:Vd" field as <Qd>*2.

<Qn>

Is the 128-bit name of the first SIMD&FP source register, encoded in the "N:Vn" field as <Qn>*2.

<Qm>

Is the 128-bit name of the second SIMD&FP source register, encoded in the "M:Vm" field as <Qm>*2.

Operation

if ConditionPassed() then EncodingSpecificOperations(); CheckCryptoEnabled32(); var x : bits(128) = Q(d>>1); var y : bits(32) = Q(n>>1)[31:0]; // Note: 32 bits wide let w : bits(128) = Q(m>>1); for e = 0 to 3 do let t : bits(32) = SHAchoose(x[63:32], x[95:64], x[127:96]); y = y + ROL(x[31:0], 5) + t + w[e*:32]; x[63:32] = ROL(x[63:32], 30); let yx : bits(160) = ROL(y::x, 32); (y, x) = (yx[128+:32], yx[0+:128]); end; Q(d>>1) = x; end;

Operational information

This instruction is a data-independent-time instruction as described in About the DIT bit.


2026-03_rel 2026-03-26 20:48:11

Copyright © 2010-2026 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.