fsub

SVE Floating-Point Subtract

FSUB <Zdn>.<T>, <Pg>/M, <Zdn>.<T>, <Zm>.<T>

Subtracts floating-point elements under predicate.

Details

The SVE Floating-Point Subtract instruction subtracts floating-point elements under predicate.

Pseudocode Operation

Zdn ← Pg - Zm
// Flags affected: N, Z, C, V

Example

FSUB z0.s.T, p0/m/M, z0.s.T, z2.s.T

Encoding

Binary Layout
01100101
00
0
00001
Pg
Zm
Zdn
 
Format SVE FP Binary
Opcode 0x65002000
Extension SVE

Operands

  • Zdn
    Combined destination/source scalable vector register (SVE)
  • Pg
    Mask
  • Zm
    Second source scalable vector register (SVE)