]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Fix pr106459 by use HWIT instead of 1UL.
authorChenghua Xu <xuchenghua@loongson.cn>
Wed, 24 Aug 2022 07:34:07 +0000 (15:34 +0800)
committerChenghua Xu <paul.hua.gm@gmail.com>
Thu, 25 Aug 2022 01:27:38 +0000 (09:27 +0800)
commitce753c2792363f1b4cfe2ac56b2da562b34151f3
tree3271b4eac05cf9ae21a8dce0b267b5a6a92157bb
parentcce15df5287dd0a4c3afd3c46ec6cb37f45fde2a
LoongArch: Fix pr106459 by use HWIT instead of 1UL.

gcc/ChangeLog:

PR target/106459
* config/loongarch/loongarch.cc (loongarch_build_integer):
Use HOST_WIDE_INT.
* config/loongarch/loongarch.h (IMM_REACH): Likewise.
(HWIT_1U): New Defined.
(LU12I_OPERAND): Use HOST_WIDE_INT.
(LU32I_OPERAND): Likewise.
(LU52I_OPERAND): Likewise.
(HWIT_UC_0xFFF): Likwise.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/pr106459.c: New test.

(cherry picked from commit b169b67d7dafe2b786f87c31d6b2efc603fd880c)
gcc/config/loongarch/loongarch.cc
gcc/config/loongarch/loongarch.h
gcc/testsuite/gcc.target/loongarch/pr106459.c [new file with mode: 0644]