]> git.ipfire.org Git - thirdparty/gcc.git/commit
xtensa: Fix remaining inaccuracies in xtensa_is_insn_L32R_p()
authorTakayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
Fri, 25 Jul 2025 01:40:42 +0000 (10:40 +0900)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 28 Jul 2025 00:18:24 +0000 (17:18 -0700)
commit7b313f53590ab6c404943a6487769540c1654d7b
tree8dae46a87b1b7b527dd6727b6050656c555a3cb1
parentc92c557308a7aeb8a55539a1ea3c1445f880a6f3
xtensa: Fix remaining inaccuracies in xtensa_is_insn_L32R_p()

The previous fix also had some flaws:

- The TARGET_CONST16 check was a bit premature
- It didn't take into account the possibility of the RTL expression
   "(set (reg:SF gpr) (const_int))", especially when TARGET_AUTOLITPOOLS is
   configured

This patch fixes the above.

gcc/ChangeLog:

* config/xtensa/xtensa.cc (xtensa_is_insn_L32R_p):
Re-rewrite to more accurately capture insns that could be L32R machine
instructions wherever possible, and add comments that help understand
the intent of the process.
gcc/config/xtensa/xtensa.cc