decb
SVE Decrement Scalar by Byte Count
DECB <Xdn>, <pattern> {, MUL #<imm>}
Decrements a register by the number of active bytes.
Pseudocode Operation
count ← CountActiveBytes(pattern)
multiplier ← imm4 if imm4 != 0 else 1
Xdn ← Xdn - (count * multiplier)
Example
DECB Xdn, pattern
Encoding
Binary Layout
00000100
31:24
0
23
0
22
11
21:20
imm4
19:16
11100
15:11
1
10
pattern
9:5
Rdn
4:0
Operands
-
Xdn
Register -
pattern
Predicate Pattern
Related
More in SVE
Reference
View in Arm A64 ISA Reference ↗
Arm A64 ISA
Instruction Forms
| Encoding | Instruction | ISA | Bit pattern | ||
|---|---|---|---|---|---|
| 0x0430E400 | DECB <Xdn>{, <pattern>{, MUL #<imm>}} | A64 | 00000100 | 0 | 0 | 11 | imm4 | 11100 | 1 | pattern | Rdn |
Description
Determines the number of active elements implied by the named predicate constraint, multiplies that by an immediate in the range 1 to 16 inclusive, and then uses the result to decrement the scalar destination. The named predicate constraint limits the number of active elements in a single predicate to: Unspecified or out of range constraint encodings generate an empty predicate or zero element count rather than Undefined Instruction exception.
Operation
CheckSVEEnabled(); integer count = DecodePredCount(pat, esize); constant integer VL = CurrentVL; bits(64) operand1 = X[dn, 64]; X[dn, 64] = operand1 - (count * imm);