]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: fix branch too far for CBZ (and like)
authorCherry Zhang <cherryyz@google.com>
Wed, 16 Nov 2016 15:43:54 +0000 (10:43 -0500)
committerCherry Zhang <cherryyz@google.com>
Wed, 16 Nov 2016 20:31:40 +0000 (20:31 +0000)
commit1e3c57c2cc1500b12a35a859f3d6e8aa27aeebc5
treeddd1b20a83772a3fe83a2f6c5a3028aebbc83f27
parentcd66c38619cbf6e031d9af4cea8197cd6980ffa1
cmd/internal/obj/arm64: fix branch too far for CBZ (and like)

The assembler backend fixes too-far conditional branches, but only
for BEQ and like. Add a case for CBZ and like.

Fixes #17925.

Change-Id: Ie516e6c5ca165b582367283a0110f7081e00c214
Reviewed-on: https://go-review.googlesource.com/33304
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/internal/obj/arm64/asm7.go
src/cmd/internal/obj/arm64/asm_test.go [new file with mode: 0644]