On Wed, Oct 21, 2026 at 5:44 PM Brian Cain <[email protected]> wrote:
>
> Add tests for: vallocframe, atomics, trap2, CFI/restricted branches, and
> scalar fp instructions.
>
> New instructions not yet supported by the toolchain are manually encoded
> with .word directives.
>
> Reviewed-by: Pierrick Bouvier <[email protected]>
> Signed-off-by: Brian Cain <[email protected]>
> ---
> tests/tcg/hexagon/cfi_tgts.h | 18 +++
> tests/tcg/hexagon/atomics.c | 111 +++++++++++++++++
> tests/tcg/hexagon/cfi_tlb.c | 99 +++++++++++++++
> tests/tcg/hexagon/cfi_user.c | 73 +++++++++++
> tests/tcg/hexagon/check_rev_gating.c | 10 ++
> tests/tcg/hexagon/invalid-encoding.c | 20 +++
> tests/tcg/hexagon/trap2.c | 34 +++++
> tests/tcg/hexagon/v83_scalar_fp.c | 98 +++++++++++++++
> tests/tcg/hexagon/vallocframe.c | 128 +++++++++++++++++++
> tests/tcg/hexagon/cfi_tgts.S | 178 +++++++++++++++++++++++++++
> tests/tcg/hexagon/meson.build | 24 +++-
> 11 files changed, 791 insertions(+), 2 deletions(-)
> create mode 100644 tests/tcg/hexagon/cfi_tgts.h
> create mode 100644 tests/tcg/hexagon/cfi_tlb.c
> create mode 100644 tests/tcg/hexagon/cfi_user.c
> create mode 100644 tests/tcg/hexagon/trap2.c
> create mode 100644 tests/tcg/hexagon/v83_scalar_fp.c
> create mode 100644 tests/tcg/hexagon/vallocframe.c
> create mode 100644 tests/tcg/hexagon/cfi_tgts.S
>
> +static uint32_t read_vsp(void)
> +{
> + uint32_t value;
> +
> + asm volatile(".word 0x6a1dc000\n" /* r0 = vsp */
> + "%0 = r0\n"
> + : "=r"(value));
The r0 clobber is missing