From: Takayuki 'January June' Suwa Date: Thu, 7 Aug 2025 21:49:13 +0000 (+0900) Subject: xtensa: Refine constraint "T" to define_special_memory_constraint X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffc867844c989c16815580ce243296bfdcec8590;p=thirdparty%2Fgcc.git xtensa: Refine constraint "T" to define_special_memory_constraint References to literal pool entries do not need to be reloaded or converted to "(mem (reg X))" to load via base register. gcc/ChangeLog: * config/xtensa/constraints.md (T): Change define_memory_constraint to define_special_memory_constraint. --- diff --git a/gcc/config/xtensa/constraints.md b/gcc/config/xtensa/constraints.md index 77c95713085..727ec1e2c20 100644 --- a/gcc/config/xtensa/constraints.md +++ b/gcc/config/xtensa/constraints.md @@ -130,7 +130,7 @@ (and (match_code "mem") (match_test "smalloffset_mem_p (op)"))) -(define_memory_constraint "T" +(define_special_memory_constraint "T" "Memory in a literal pool (addressable with an L32R instruction)." (and (match_code "mem") (match_test "!TARGET_CONST16 && constantpool_mem_p (op)")))