cmd/asm/internal/asm/testdata: add SB tests

Add tests for the SB instruction which were omitted in CL 729501.

Change-Id: Ia71940b813563a418011914660ee0f1aeaa78444
Reviewed-on: https://go-review.googlesource.com/c/go/+/748580
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Roland Shoemaker <roland@golang.org>
This commit is contained in:
Roland Shoemaker
2026-02-24 12:47:42 -08:00
committed by Gopher Robot
parent 874c3ceb3f
commit e237976802
3 changed files with 3 additions and 0 deletions

View File

@@ -287,6 +287,7 @@ TEXT foo(SB), DUPOK|NOSPLIT, $-8
HINT $0 // 1f2003d5
DMB $1
SVC
SB // ff3003d5
// encryption
SHA256H V9.S4, V3, V2 // 6240095e

View File

@@ -762,5 +762,6 @@ TEXT asmtest(SB),DUPOK|NOSPLIT,$-8
VMOV V0.B[1], R11 // 0b3c030e
VMOV V1.H[3], R12 // 2c3c0e0e
VUSHR $6, V22.H8, V23.H8 // d7061a6f
SB // ff3003d5
RET

View File

@@ -428,4 +428,5 @@ TEXT errors(SB),$0
AUTIBSP C // ERROR "illegal combination"
AUTIA1716 $45 // ERROR "illegal combination"
AUTIB1716 R0 // ERROR "illegal combination"
SB $1 // ERROR "illegal combination"
RET