]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
xtensa: Refine constraint "T" to define_special_memory_constraint
authorTakayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
Thu, 7 Aug 2025 21:49:13 +0000 (06:49 +0900)
committerMax Filippov <jcmvbkbc@gmail.com>
Sat, 9 Aug 2025 05:01:05 +0000 (22:01 -0700)
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

index 77c95713085c5a1216bd7208b4560e36fe82864d..727ec1e2c2025cae69f7b4f5fa9ec4303c54b5bb 100644 (file)
  (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)")))