From 7f955f8bd1149e25f00bfd39043f027b91b3c726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Balv=C3=ADn?= Date: Wed, 7 Oct 2026 12:50:21 +0200 Subject: [PATCH] fix(cmd/gasm): probe the loong64 sc.q operand order in the encodability battery Assisted-by: GLM 5.3 --- cmd/gasm/audit.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/gasm/audit.go b/cmd/gasm/audit.go index b2c2d28..9dc0b13 100644 --- a/cmd/gasm/audit.go +++ b/cmd/gasm/audit.go @@ -342,6 +342,9 @@ func probeShapes(a arch.Arch) []string { // hint, and the byte-shuffle quads. "$1, $0", "R1, R5, 0", "0(R7), $5, $0", "(R7), $5, $0", "V1, V2, V3, V4", "X1, X2, X3, X4", + // SCQ (sc.q) keeps its own three-operand order: value, + // scratch, memory base. + "R4, R5, (R6)", "", } }