From ffc867844c989c16815580ce243296bfdcec8590 Mon Sep 17 00:00:00 2001 From: Takayuki 'January June' Suwa Date: Fri, 8 Aug 2025 06:49:13 +0900 Subject: [PATCH] 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. --- gcc/config/xtensa/constraints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/xtensa/constraints.md b/gcc/config/xtensa/constraints.md index 77c95713085c..727ec1e2c202 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)"))) -- 2.47.2