]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: process forward jump to PCALIGN
authorZhouGuangyuan <zhouguangyuan@golangcn.org>
Mon, 18 Aug 2025 11:27:46 +0000 (19:27 +0800)
committerCherry Mui <cherryyz@google.com>
Fri, 22 Aug 2025 01:51:39 +0000 (18:51 -0700)
commit1ad30844d9cc0d5792b055f44a6e98759587bbfb
treecd2b72d779d204758daadb533f8aa73892f82566
parent13c082601db45c25fc85f4cdac9cc3bab7c4329f
cmd/asm: process forward jump to PCALIGN

The forward jump target are not processed when the target is PCALIGN, so
process it before emit nops for PCALIGN.

Fixes #74648

Change-Id: I690fbfacf79e26d7a37628a2551729b2381616c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/696915
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/x86/asm6.go
test/fixedbugs/issue74648.dir/a.s [new file with mode: 0644]
test/fixedbugs/issue74648.dir/x.go [new file with mode: 0644]
test/fixedbugs/issue74648.go [new file with mode: 0644]