brkn
BRKN <Pdm>.B, <Pg>/Z, <Pn>.B, <Pdm>.B
Break to Next Partition.
Pseudocode Operation
No pseudocode available.
Encoding
Binary Layout
001001010
31:23
0
22
01100001
21:14
Pg
13:10
0
9
Pn
8:5
0
4
Pdm
3:0
Related
More in SVE
Reference
View in Arm A64 ISA Reference ↗
Arm A64 ISA
Instruction Forms
| Encoding | Instruction | ISA | Bit pattern | ||
|---|---|---|---|---|---|
| 0x25184000 | BRKN <Pdm>.B, <Pg>/Z, <Pn>.B, <Pdm>.B | A64 | 001001010 | 0 | 01100001 | Pg | 0 | Pn | 0 | Pdm |
Description
If the last active element of the first source predicate is false then set the destination predicate to all-false. Otherwise leaves the destination and second source predicate unchanged. Does not set the condition flags.
Operation
CheckSVEEnabled();
constant integer VL = CurrentVL;
constant integer PL = VL DIV 8;
bits(PL) mask = P[g, PL];
bits(PL) operand1 = P[n, PL];
bits(PL) operand2 = P[dm, PL];
bits(PL) result;
if LastActive(mask, operand1, 8) == '1' then
result = operand2;
else
result = Zeros(PL);
if setflags then
PSTATE.<N,Z,C,V> = PredTest(Ones(PL), result, 8);
P[dm, PL] = result;