]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: add error report for invalid base register
authorfanzha02 <fannie.zhang@arm.com>
Mon, 10 Sep 2018 02:22:48 +0000 (02:22 +0000)
committerCherry Zhang <cherryyz@google.com>
Wed, 12 Sep 2018 15:45:13 +0000 (15:45 +0000)
commite7f5f3eca42a98340e4eb4fc5d490a9aa4bd5054
treeb21f9398016f2eaa4e4ab13400845488bc665b56
parentd5377c2026b18e1307c6fd243ece98afc6330b71
cmd/internal/obj/arm64: add error report for invalid base register

The current assembler accepts the non-integer register as the base register,
which should be an illegal combination.

Add the test cases.

Change-Id: Ia21596bbb5b1e212e34bd3a170748ae788860422
Reviewed-on: https://go-review.googlesource.com/134575
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/asm/testdata/arm64error.s
src/cmd/internal/obj/arm64/asm7.go