]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AArch64: Set instruction attribute of TST to logics_imm
authorJennifer Schmitz <jschmitz@nvidia.com>
Mon, 29 Jul 2024 14:59:33 +0000 (07:59 -0700)
committerJennifer Schmitz <jschmitz@nvidia.com>
Mon, 5 Aug 2024 12:58:21 +0000 (14:58 +0200)
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.

gcc/config/aarch64/aarch64.md

index ed1bd2ede7d716fb62f19ac9ea3c5c3a26416bdf..665a333903c980537cc84ef896eba8dd9fb42600 100644 (file)
         (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"