WRFFR

Write the first-fault register

Read the source predicate register and place in the first-fault register (FFR). This instruction is intended to restore a saved FFR and is not recommended for general use by applications.

This instruction requires that the source predicate contains a monotonic predicate value, in which starting from bit 0 there are zero or more 1 bits, followed only by 0 bits in any remaining bit positions. If the source is not a monotonic predicate value, then the resulting value in the FFR will be UNPREDICTABLE. It is not possible to generate a non-monotonic value in FFR when using SETFFR followed by first-fault or non-fault loads.

313029282726252423222120191817161514131211109876543210
00100101001010001001000Pn00000

WRFFR <Pn>.B

if !HaveSVE() then UNDEFINED; integer n = UInt(Pn);

Assembler Symbols

<Pn>

Is the name of the source scalable predicate register, encoded in the "Pn" field.

Operation

CheckNonStreamingSVEEnabled(); bits(PL) operand = P[n]; hsb = HighestSetBit(operand); if hsb < 0 || IsOnes(operand<hsb:0>) then FFR[] = operand; else // not a monotonic predicate FFR[] = bits(PL) UNKNOWN;

Operational information

If FEAT_SVE2 is enabled or FEAT_SME is enabled, then when PSTATE.DIT is 1:


Internal version only: isa v33.11seprel, AdvSIMD v29.05, pseudocode v2021-09_rel, sve v2021-09_rc3d ; Build timestamp: 2021-10-06T11:41

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