LoongArch: Fixed a compilation failure with '%c' in inline assembly [PR107731].
authorLulu Cheng <chenglulu@loongson.cn>
Wed, 18 Jan 2023 03:06:56 +0000 (11:06 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Tue, 24 Jan 2023 04:55:11 +0000 (12:55 +0800)
commitb5ea0f071aca505c82cc8c062e57bf9892900277
tree1d12efa682bf526142811ea10921e3905ca05838
parent049a52909075117f5112971cc83952af2a818bc1
LoongArch: Fixed a compilation failure with '%c' in inline assembly [PR107731].

Co-authored-by: Yang Yujie <yangyujie@loongson.cn>
PR target/107731

gcc/ChangeLog:

* config/loongarch/loongarch.cc (loongarch_classify_address):
Add precessint for CONST_INT.
(loongarch_print_operand_reloc): Operand modifier 'c' is supported.
(loongarch_print_operand): Increase the processing of '%c'.
* doc/extend.texi: Adds documents for LoongArch operand modifiers.
And port the public operand modifiers information to this document.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/tst-asm-const.c: Moved to...
* gcc.target/loongarch/pr107731.c: ...here.
gcc/config/loongarch/loongarch.cc
gcc/doc/extend.texi
gcc/testsuite/gcc.target/loongarch/pr107731.c [moved from gcc/testsuite/gcc.target/loongarch/tst-asm-const.c with 78% similarity]