]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: fix bug about VMOV instruction (move register to vector element) on ARM64
authorFangming.Fang <fangming.fang@arm.com>
Mon, 19 Mar 2018 06:52:28 +0000 (06:52 +0000)
committerCherry Zhang <cherryyz@google.com>
Tue, 20 Mar 2018 03:43:37 +0000 (03:43 +0000)
commit7673e30503e3864265a842ec3e4200b317fc571d
treec515c18d4ca3bfed77f9706902c11a9a373956d9
parentc12b185a6ed143e7b397bd58489866505756be0e
cmd/asm: fix bug about VMOV instruction (move register to vector element) on ARM64

This change fixes index error when encoding VMOV instruction which pattern is
VMOV Rn, V.<T>[index]. For example VMOV R1, V1.S[1] is assembled as VMOV R1, V1.S[0]

Fixes #24400
Change-Id: I82b5edc8af4e06862bc4692b119697c6bb7dc3fb
Reviewed-on: https://go-review.googlesource.com/101297
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/asm/testdata/arm64.s
src/cmd/internal/obj/arm64/asm7.go