As suggested in
https://gcc.gnu.org/pipermail/gcc-patches/2024-July/658249.html,
this patch changes the instruction attribute of "*and<mode>_compare0" (TST) from
alus_imm to logics_imm.
The patch was bootstrapped and regtested on aarch64-linux-gnu, no regression.
OK for mainline?
Signed-off-by: Jennifer Schmitz <jschmitz@nvidia.com>
gcc/
* config/aarch64/aarch64.md (*and<mode>_compare0): Change attribute.
(const_int 0)))]
""
"tst\\t%<w>0, <short_mask>"
- [(set_attr "type" "alus_imm")]
+ [(set_attr "type" "logics_imm")]
)
(define_insn "*ands<GPI:mode>_compare0"