https://gcc.gnu.org/g:9c621efd2c54879fe4e42eb4c48b11a38931e105

commit r16-817-g9c621efd2c54879fe4e42eb4c48b11a38931e105
Author: Xi Ruoyao <xry...@xry111.site>
Date:   Wed May 21 15:05:27 2025 +0800

    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:
---
 gcc/doc/md.texi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi
index 1a1c1b730897..2a1f9919c5b2 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

Reply via email to