From: Xi Ruoyao Date: Wed, 21 May 2025 07:05:27 +0000 (+0800) Subject: doc: Document the 'q' constraint for LoongArch X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c621efd2c54879fe4e42eb4c48b11a38931e105;p=thirdparty%2Fgcc.git doc: Document the 'q' constraint for LoongArch The kernel developers have requested such a constraint to use csrxchg in inline assembly. gcc/ChangeLog: * doc/md.texi: Document the 'q' constraint for LoongArch. --- diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 1a1c1b73089..2a1f9919c5b 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -2918,6 +2918,9 @@ A signed 16-bit constant. A memory operand whose address is formed by a base register and offset that is suitable for use in instructions with the same addressing mode as @code{st.w} and @code{ld.w}. +@item q +A general-purpose register except for $r0 and $r1 (for the csrxchg +instruction) @item I A signed 12-bit constant (for arithmetic instructions). @item K