On Tue, 22 Sep 2026 17:22:47 +0100, Dominic P <[email protected]> wrote:
> diff --git a/gcc/testsuite/gcc.target/arm/rev16_3.c 
> b/gcc/testsuite/gcc.target/arm/rev16_3.c
> new file mode 100644
> index 00000000000..c3b1b977af3
> --- /dev/null
> +++ b/gcc/testsuite/gcc.target/arm/rev16_3.c
> @@ -0,0 +1,58 @@
> [ ... skip 43 lines ... ]
> +  return (u16) (((x & 0xffU) << 8) | ((x & 0xff00U) >> 8));
> +}
> +
> +/*
> +** load_indexed:
> +**   lsl     r1, r1, #1

This expected instruction is not valid for all targets admitted by the
test. `arm_arch_v6` does not select ARM state, and in Thumb-1
`thumb1.md` emits `lsls`, so `check-function-bodies` will fail on a
Thumb-1 configuration. Please either force ARM state (for example,
`-marm` with `arm_arch_v6_arm_ok`) or make this expectation accept both
forms, e.g. `lsls?`.

-- 
Naveen <[email protected]>

Reply via email to