[Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|--- |12.4 Status|UNCONFIRMED |RESOLVED --- Comment #9 from Andrew Pinski --- Fixed.
[Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 --- Comment #8 from CVS Commits --- The releases/gcc-12 branch has been updated by Chenghua Xu : https://gcc.gnu.org/g:ce753c2792363f1b4cfe2ac56b2da562b34151f3 commit r12-8713-gce753c2792363f1b4cfe2ac56b2da562b34151f3 Author: Chenghua Xu Date: Wed Aug 24 15:34:07 2022 +0800 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)
[Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 --- Comment #7 from CVS Commits --- The master branch has been updated by Chenghua Xu : https://gcc.gnu.org/g:b169b67d7dafe2b786f87c31d6b2efc603fd880c commit r13-2195-gb169b67d7dafe2b786f87c31d6b2efc603fd880c Author: Chenghua Xu Date: Wed Aug 24 15:34:07 2022 +0800 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.
[Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 Paul Hua changed: What|Removed |Added CC||paul.hua.gm at gmail dot com --- Comment #6 from Paul Hua --- Fix patch. https://gcc.gnu.org/pipermail/gcc-patches/2022-August/600185.html
[Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 --- Comment #5 from Andrew Pinski --- It might also be: #define IMM16_OPERAND(VALUE) \ ((unsigned HOST_WIDE_INT) (VALUE) + 0x8000 < 0x1)
[Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 --- Comment #4 from Andrew Pinski --- I suspect it is this macro which is causing the issue: /* True if VALUE can be loaded into a register using LU12I. */ #define LU12I_OPERAND(VALUE) \ (((VALUE) | ((1UL << 31) - IMM_REACH)) == ((1UL << 31) - IMM_REACH) \ || ((VALUE) | ((1UL << 31) - IMM_REACH)) + IMM_REACH == 0) It should either use ULL or use HOST_WIDE_INT_1U instead of 1UL.
[Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 Andrew Pinski changed: What|Removed |Added Component|c++ |target --- Comment #3 from Andrew Pinski --- This is most likely a loongarch64 backend issue where it uses long instead of host wide int for testing the value of a const_int.