SETEND Set Endianness Set Endianness writes a new value to PSTATE.E. For more information about the constrained unpredictable behavior of this instruction, see Architectural Constraints on UNPREDICTABLE behaviors. It has encodings from the following instruction sets: A32 ( A1 ) and T32 ( T1 ) . 1 1 1 1 0 0 0 1 0 0 0 0 (0) (0) (0) 1 (0) (0) (0) (0) (0) (0) (0) 0 0 0 0 (0) (0) (0) (0) SETEND{<q>} <endian_specifier> set_bigend = (E == '1'); 1 0 1 1 0 1 1 0 0 1 0 (1) (0) (0) (0) SETEND{<q>} <endian_specifier> set_bigend = (E == '1'); if InITBlock() then UNPREDICTABLE; <q> See Standard assembler syntax fields. <endian_specifier> Is the endianness to be selected, and the value to be set in PSTATE.E, E <endian_specifier> 0 LE 1 BE
EncodingSpecificOperations(); AArch32.CheckSETENDEnabled(); PSTATE.E = if set_bigend then '1' else '0';