style: purge em dashes from the produced text

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-16 23:12:31 +02:00
parent 6a7317d141
commit 0078f7be5c
25 changed files with 67 additions and 67 deletions
+7 -7
View File
@@ -48,7 +48,7 @@ func TestFixtureIsClean(t *testing.T) {
t.Fatalf("parse: %v", errs)
}
// The fixture mirrors the go-flac kernels, which write the Go ABI0
// scratch registers (BX, R13) without saving them — legal under Go's
// scratch registers (BX, R13) without saving them; legal under Go's
// stack-based ABI, so the register-clobber audit stays silent and the
// fixture must lint entirely clean.
diags := File(f, Config{Arch: arch.AMD64})
@@ -186,8 +186,8 @@ done:
}
}
// TestEvexMaskingRecognised checks that masked EVEX forms — the .Z suffix and
// an explicit K operand — are recognised and exempt from operand-count
// TestEvexMaskingRecognised checks that masked EVEX forms; the .Z suffix and
// an explicit K operand; are recognised and exempt from operand-count
// checks.
func TestEvexMaskingRecognised(t *testing.T) {
diags := lintSrc(t, `
@@ -284,7 +284,7 @@ TEXT ·f(SB), NOSPLIT|NOFRAME|DUPOK, $0
}
func TestStackImbalance(t *testing.T) {
// Function with frame size 16 but only SUB 8, SP — imbalance.
// Function with frame size 16 but only SUB 8, SP; imbalance.
diags := lintSrc(t, `
#include "textflag.h"
TEXT ·f(SB), NOSPLIT, $16-0
@@ -297,7 +297,7 @@ TEXT ·f(SB), NOSPLIT, $16-0
}
func TestStackBalanced(t *testing.T) {
// Function with frame size 16 and matching SUB/ADD — balanced.
// Function with frame size 16 and matching SUB/ADD; balanced.
diags := lintSrc(t, `
#include "textflag.h"
TEXT ·f(SB), NOSPLIT, $16-0
@@ -311,7 +311,7 @@ TEXT ·f(SB), NOSPLIT, $16-0
}
func TestRegisterWidthMismatch(t *testing.T) {
// MOVQ with 32-bit register — mismatch.
// MOVQ with 32-bit register; mismatch.
diags := lintSrc(t, `
#include "textflag.h"
TEXT ·f(SB), NOSPLIT, $0
@@ -324,7 +324,7 @@ TEXT ·f(SB), NOSPLIT, $0
}
func TestRegisterWidthCorrect(t *testing.T) {
// MOVQ with 64-bit registers — correct.
// MOVQ with 64-bit registers; correct.
diags := lintSrc(t, `
#include "textflag.h"
TEXT ·f(SB), NOSPLIT, $0