]> git.ipfire.org Git - thirdparty/gcc.git/commit
MIPS: Use ISA_HAS_9BIT_DISPLACEMENT for mips16e2
authorJie Mei <jie.mei@oss.cipunited.com>
Mon, 19 Jun 2023 08:29:56 +0000 (16:29 +0800)
committerYunQiang Su <yunqiang.su@cipunited.com>
Mon, 3 Jul 2023 03:34:47 +0000 (11:34 +0800)
commit773110dea48baed989f2b92bf2e1689cc2d87b60
tree83dc483deb8afaf748360e1636a8909fccd3b179
parent95c6fb6a841989c47213fedca689de1d50658ecf
MIPS: Use ISA_HAS_9BIT_DISPLACEMENT for mips16e2

The MIPS16e2 ASE has PREF, LL and SC instructions,
they use 9 bits immediate, like mips32r6.
The MIPS32 PRE-R6 uses 16 bits immediate.

gcc/ChangeLog:

* config/mips/mips.h(ISA_HAS_9BIT_DISPLACEMENT): Add clause
for ISA_HAS_MIPS16E2.
(ISA_HAS_SYNC): Same as above.
(ISA_HAS_LL_SC): Same as above.
gcc/config/mips/mips.h