]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: fix the wrong error message of out-of-range checking
authoreric fang <eric.fang@arm.com>
Tue, 27 Apr 2021 06:19:57 +0000 (06:19 +0000)
committereric fang <eric.fang@arm.com>
Wed, 28 Apr 2021 01:16:38 +0000 (01:16 +0000)
commitf439a762533f3a75eb928b67d0415010aa8a81d7
treee9b5c042864fcb11daa5b6fceae890e417310588
parentc9f43507c6d8106646b1262052cc9a2c5dbb6e4c
cmd/internal/obj/arm64: fix the wrong error message of out-of-range checking

The error message of checking whether the offset value of load/store
instruction is out of range is wrong. The right range is [-256, 255], not
[-255, 254]. The CL fixes it.

Change-Id: Ia342957f1f6bcec65eceb45944221d3972641bed
Reviewed-on: https://go-review.googlesource.com/c/go/+/313891
Reviewed-by: eric fang <eric.fang@arm.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Trust: eric fang <eric.fang@arm.com>
Run-TryBot: eric fang <eric.fang@arm.com>
src/cmd/asm/internal/asm/testdata/arm64error.s
src/cmd/internal/obj/arm64/asm7.go