https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107731
--- Comment #6 from chenglulu <chenglulu at loongson dot cn> --- (In reply to Andrew Pinski from comment #1) > %c does not mean anything in loongarch. > > The codes are not documented in the documentation for loonarch though but > they currently only documented in loongarch.cc: > 'A' Print a _DB suffix if the memory model requires a release. > 'b' Print the address of a memory operand, without offset. > 'C' Print the integer branch condition for comparison OP. > 'd' Print CONST_INT OP in decimal. > 'F' Print the FPU branch condition for comparison OP. > 'G' Print a DBAR insn if the memory model requires a release. > 'H' Print address 52-61bit relocation associated with OP. > 'h' Print the high-part relocation associated with OP. > 'i' Print i if the operand is not a register. > 'L' Print the low-part relocation associated with OP. > 'm' Print one less than CONST_INT OP in decimal. > 'N' Print the inverse of the integer branch condition for comparison OP. > 'r' Print address 12-31bit relocation associated with OP. > 'R' Print address 32-51bit relocation associated with OP. > 'T' Print 'f' for (eq:CC ...), 't' for (ne:CC ...), > 'z' for (eq:?I ...), 'n' for (ne:?I ...). > 't' Like 'T', but with the EQ/NE cases reversed > 'V' Print exact log2 of CONST_INT OP element 0 of a replicated > CONST_VECTOR in decimal. > 'W' Print the inverse of the FPU branch condition for comparison OP. > 'X' Print CONST_INT OP in hexadecimal format. > 'x' Print the low 16 bits of CONST_INT OP in hexadecimal format. > 'Y' Print loongarch_fp_conditions[INTVAL (OP)] > 'y' Print exact log2 of CONST_INT OP in decimal. > 'Z' Print OP and a comma for 8CC, otherwise print nothing. > 'z' Print $0 if OP is zero, otherwise print OP normally. */ Sorry, I'll put the ones that will be used in the document.(In reply to Xi Ruoyao from comment #2) > (In reply to Andrew Pinski from comment #1) > > %c does not mean anything in loongarch. > > > > The codes are not documented in the documentation for loonarch though but > > they currently only documented in loongarch.cc: > > 'A' Print a _DB suffix if the memory model requires a release. > > 'b' Print the address of a memory operand, without offset. > > 'C' Print the integer branch condition for comparison OP. > > 'd' Print CONST_INT OP in decimal. > > 'F' Print the FPU branch condition for comparison OP. > > 'G' Print a DBAR insn if the memory model requires a release. > > 'H' Print address 52-61bit relocation associated with OP. > > 'h' Print the high-part relocation associated with OP. > > 'i' Print i if the operand is not a register. > > 'L' Print the low-part relocation associated with OP. > > 'm' Print one less than CONST_INT OP in decimal. > > 'N' Print the inverse of the integer branch condition for comparison OP. > > 'r' Print address 12-31bit relocation associated with OP. > > 'R' Print address 32-51bit relocation associated with OP. > > 'T' Print 'f' for (eq:CC ...), 't' for (ne:CC ...), > > 'z' for (eq:?I ...), 'n' for (ne:?I ...). > > 't' Like 'T', but with the EQ/NE cases reversed > > 'V' Print exact log2 of CONST_INT OP element 0 of a replicated > > CONST_VECTOR in decimal. > > 'W' Print the inverse of the FPU branch condition for comparison OP. > > 'X' Print CONST_INT OP in hexadecimal format. > > 'x' Print the low 16 bits of CONST_INT OP in hexadecimal format. > > 'Y' Print loongarch_fp_conditions[INTVAL (OP)] > > 'y' Print exact log2 of CONST_INT OP in decimal. > > 'Z' Print OP and a comma for 8CC, otherwise print nothing. > > 'z' Print $0 if OP is zero, otherwise print OP normally. */ > > Interestingly it "worked" with GCC 12.2... (In reply to Xi Ruoyao from comment #5) > (In reply to Andrew Pinski from comment #4) > > (In reply to Xi Ruoyao from comment #2) > > > Interestingly it "worked" with GCC 12.2... > > No it does not work. I guess I typed the test command in a wrong SSH > session... I have found the error cause, I will push patch later