[object Object][object Object][object Object]undefined
[object Object]

Converts half type data to int8_t type, and supports multiple rounding modes.

  • RINT rounding mode: round half to even

  • ROUND rounding mode: round half up

  • FLOOR rounding mode: round toward negative infinity

  • CEIL rounding mode: round toward positive infinity

  • TRUNC rounding mode: round toward zero

  • Non-saturating mode:

    • When the input data exceeds the maximum or minimum value of the output type, the result is truncated to the data width of the target format. For example, if the input half value is 257, the output int8_t value is 1.
    • When the input data is +/-inf, the maximum or minimum value of the output type is returned.
    • When the input data is nan, 0 is returned.
  • Saturating mode:

    • When the input data exceeds the maximum or minimum value of the output type, the corresponding maximum or minimum value of the output type is returned. For example, if the input half value is 257, the output int8_t value is 127.
    • When the input data is +/-inf, the maximum or minimum value of the output type is returned.
    • When the input data is nan, 0 is returned.
[object Object]
[object Object]
[object Object][object Object]undefined

For details about vector data registers and mask registers, see .

[object Object]

None

[object Object]

PIPE_V

[object Object]
  • To enable the saturating mode and non-saturating mode, you need to configure the ctrl register. For details about the ctrl register, see .
[object Object]
[object Object]