From: Jennifer Schmitz Date: Mon, 29 Jul 2024 14:59:33 +0000 (-0700) Subject: AArch64: Set instruction attribute of TST to logics_imm X-Git-Tag: basepoints/gcc-16~6829 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7268d7249b3ca31bf322de99b1d59baf06f83eb3;p=thirdparty%2Fgcc.git AArch64: Set instruction attribute of TST to logics_imm As suggested in https://gcc.gnu.org/pipermail/gcc-patches/2024-July/658249.html, this patch changes the instruction attribute of "*and_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 gcc/ * config/aarch64/aarch64.md (*and_compare0): Change attribute. --- diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md index ed1bd2ede7d..665a333903c 100644 --- a/gcc/config/aarch64/aarch64.md +++ b/gcc/config/aarch64/aarch64.md @@ -5408,7 +5408,7 @@ (const_int 0)))] "" "tst\\t%0, " - [(set_attr "type" "alus_imm")] + [(set_attr "type" "logics_imm")] ) (define_insn "*ands_compare0"