aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/asm/internal/asm/testdata/arm64error.s
diff options
context:
space:
mode:
authorfanzha02 <fannie.zhang@arm.com>2018-01-26 08:15:49 +0000
committerCherry Zhang <cherryyz@google.com>2018-04-11 14:53:02 +0000
commit604028568e1a8c2c750ca4731c0c695516ffee65 (patch)
tree143675747544b2850d56788b70b2119965076ad5 /src/cmd/asm/internal/asm/testdata/arm64error.s
parente0ac5f540bf0d5fff39ce05d60e82d97a011e935 (diff)
downloadgo-604028568e1a8c2c750ca4731c0c695516ffee65.tar.gz
go-604028568e1a8c2c750ca4731c0c695516ffee65.zip
cmd/internal/obj/arm64: add support for a series of load/store with register offset instrucitons
The patch adds support for arm64 instructions LDRB, LDRH, LDRSB, LDRSH, LDRSW, STR, STRB and STRH with register offset. Test cases are also added. Change-Id: I8d17fddd2963c0bc366e12b00bac49b93f3f0957 Reviewed-on: https://go-review.googlesource.com/91575 Reviewed-by: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/asm/internal/asm/testdata/arm64error.s')
-rw-r--r--src/cmd/asm/internal/asm/testdata/arm64error.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/asm/testdata/arm64error.s b/src/cmd/asm/internal/asm/testdata/arm64error.s
index 4a1142e8a8..6f27af2f89 100644
--- a/src/cmd/asm/internal/asm/testdata/arm64error.s
+++ b/src/cmd/asm/internal/asm/testdata/arm64error.s
@@ -14,6 +14,8 @@ TEXT errors(SB),$0
MOVD (R3)(R7.SXTX<<2), R8 // ERROR "invalid index shift amount"
MOVWU (R5)(R4.UXTW<<3), R10 // ERROR "invalid index shift amount"
MOVWU (R5)(R4<<1), R10 // ERROR "invalid index shift amount"
+ MOVB (R5)(R4.SXTW<<5), R10 // ERROR "invalid index shift amount"
+ MOVH R5, (R6)(R2<<3) // ERROR "invalid index shift amount"
VLD1 (R8)(R13), [V2.B16] // ERROR "illegal combination"
VLD1 8(R9), [V2.B16] // ERROR "illegal combination"
VST1 [V1.B16], (R8)(R13) // ERROR "illegal combination"