A shift TI mode expand error occur if MAX_FIXED_MODE_SIZE is 128.
gcc/ChangeLog:
* config/loongarch/loongarch.h (MAX_FIXED_MODE_SIZE): Set to 64 on LA32.
---
gcc/config/loongarch/loongarch.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/loongarch/loongarch.h b/gcc/config/loongarch/loongarch.h
index 62a93d0d072..4cd7615409b 100644
--- a/gcc/config/loongarch/loongarch.h
+++ b/gcc/config/loongarch/loongarch.h
@@ -173,7 +173,7 @@ along with GCC; see the file COPYING3. If not see
/* long double is not a fixed mode, but the idea is that, if we
support long double, we also want a 128-bit integer type. */
-#define MAX_FIXED_MODE_SIZE LA_LONG_DOUBLE_TYPE_SIZE
+#define MAX_FIXED_MODE_SIZE GET_MODE_BITSIZE (TARGET_64BIT ? TImode : DImode)
/* Width in bits of a pointer. */
#ifndef POINTER_SIZE
--
2.34.1