The gcc.dg/ipa/pr122458.c test relies on this. The doc says "%c" is
for "constant operand" and I think there's no harm to consider symbolic
name a constant operand.
gcc/
* config/loongarch/loongarch.cc (loongarch_print_operand): Print
the symbol name for SYMBOL_REF with %c.
case 'c':
- if (CONST_INT_P (op))
+ if (SYMBOL_REF_P (op))
+ output_addr_const (asm_out_file, op);
+ else if (CONST_INT_P (op))
fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (op));
else
output_operand_lossage ("unsupported operand for code '%c'", letter);