eor3

Bitwise Exclusive OR (3-way) (SVE2)

EOR3 <Zdn>.D, <Zdn>.D, <Zm>.D, <Zk>.D

Exclusive OR of three vectors.

Pseudocode Operation

No pseudocode available.

Encoding

Binary Layout
00000100
31:24
0
23
0
22
1
21
Zm
20:16
00111
15:11
0
10
Zk
9:5
Zdn
4:0
 
Format SVE2 Bitwise
Opcode 0x04203800
Extension SVE2

Operands

  • Zdn
    Dest
  • Zm
    Src 2
  • Zk
    Src 3

Related

More in SVE2

Reference

Instruction Forms

Encoding Instruction ISA Bit pattern
0xCE000000 EOR3 <Vd>.16B, <Vn>.16B, <Vm>.16B, <Va>.16B A64 110011100 | 00 | Rm | 0 | Ra | Rn | Rd
0x04203800 EOR3 <Zdn>.D, <Zdn>.D, <Zm>.D, <Zk>.D A64 00000100 | 0 | 0 | 1 | Zm | 00111 | 0 | Zk | Zdn

Description

Bitwise exclusive OR the corresponding elements of all three source vectors, and destructively place the results in the corresponding elements of the destination and first source vector. This instruction is unpredicated.

Operation

CheckSVEEnabled();
constant integer VL = CurrentVL;
bits(VL) operand1 = Z[dn, VL];
bits(VL) operand2 = Z[m, VL];
bits(VL) operand3 = Z[k, VL];

Z[dn, VL] = operand1 EOR operand2 EOR operand3;