Handle CAST from fp-type to narrow integer types

Be explicit that the value is converted to int32 and then clamped to the
output type range.

Also remove use of apply_clip, replacing with either apply_clip_s or apply_clip_u

Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I0efc7f4d653c1bef13c9989cfe2647208dad9617
5 files changed
tree: ce73d71540cf6e58fb94b6a12b90d5c8c04cdd4c
  1. .gitignore
  2. .pre-commit-config.yaml
  3. Makefile
  4. README.md
  5. chapters/
  6. figures/
  7. pseudocode/
  8. tools/
  9. tosa.css
  10. tosa.xml
  11. tosa.xsd
  12. tosa_spec.adoc
README.md

TOSA Specification Repository

This repository contains the source files for the TOSA specification. See the specification itself for details on the purpose and definition of the specification.

Build requirements

The TOSA specification is written in asciidoc format, and has been built using the following tools:

  • Asciidoctor 1.5.5 or later (Asciidoctor)
  • Asciidoctor-pdf
  • GNU Make 4.1 or later
  • xmllint
  • Python 3.8 or later

The default make build creates both an html and a pdf version of the specification in out/html and out/pdf

If only an html build is required, make html will build only the html file, and asciidoctor-pdf is not needed.

If only a pdf build is required, make pdf will build only the pdf.