diff options
author | Xi Ruoyao <xry111@xry111.site> | 2025-08-19 11:14:42 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2025-09-11 18:49:33 +0800 |
commit | 13ec1769fa2404eec8c34ce8e0b87fc28ff5ac76 (patch) | |
tree | aaccb72d7b88d51585c6ad31dbc267b6fae1cc3a /libjava/classpath | |
parent | 1b27e8471327f14436e711cd2036d70b76515a6d (diff) | |
download | gcc-13ec1769fa2404eec8c34ce8e0b87fc28ff5ac76.zip gcc-13ec1769fa2404eec8c34ce8e0b87fc28ff5ac76.tar.gz gcc-13ec1769fa2404eec8c34ce8e0b87fc28ff5ac76.tar.bz2 |
LoongArch: Fix the "%t" modifier handling for (const_int 0)
This modifier is intended to output $r0 for (const_int 0), but the
logic:
GET_MODE (op) != TImode || (op != CONST0_RTX (TImode) && code != REG)
will reject (const_int 0) because (const_int 0) actually does not have
a mode and GET_MODE will return VOIDmode for it.
Use reg_or_0_operand instead to fix the issue.
gcc/ChangeLog:
* config/loongarch/loongarch.cc (loongarch_print_operand): Call
reg_or_0_operand for checking the sanity of %t.
Diffstat (limited to 'libjava/classpath')
0 files changed, 0 insertions, 0 deletions