diff options
author | Fangming.Fang <fangming.fang@arm.com> | 2018-03-16 03:19:01 +0000 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2018-04-03 15:36:31 +0000 |
commit | ef9bdd11e8e5d93d268f13b54feedbed7e3fa595 (patch) | |
tree | bd6f3a03106ce352616c1d51d6c3b2787128c30b /src/cmd/asm/internal/asm/testdata/arm64error.s | |
parent | dcaf3fb134d5ca3b74a85b765c39aa5b632638cd (diff) | |
download | go-ef9bdd11e8e5d93d268f13b54feedbed7e3fa595.tar.gz go-ef9bdd11e8e5d93d268f13b54feedbed7e3fa595.zip |
cmd/asm: add essential instructions for AES-GCM on ARM64
This change adds VLD1, VST1, VPMULL{2}, VEXT, VRBIT, VUSHR and VSHL instructions
for supporting AES-GCM implementation later.
Fixes #24400
Change-Id: I556feb88067f195cbe25629ec2b7a817acc58709
Reviewed-on: https://go-review.googlesource.com/101095
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.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/asm/testdata/arm64error.s b/src/cmd/asm/internal/asm/testdata/arm64error.s index dcdb4fe175..37e9442eca 100644 --- a/src/cmd/asm/internal/asm/testdata/arm64error.s +++ b/src/cmd/asm/internal/asm/testdata/arm64error.s @@ -58,4 +58,18 @@ TEXT errors(SB),$0 VST1.P [V4.S4], 8(R1) // ERROR "invalid post-increment offset" VLD1.P 32(R1), [V8.S4, V9.S4, V10.S4] // ERROR "invalid post-increment offset" VLD1.P 48(R1), [V7.S4, V8.S4, V9.S4, V10.S4] // ERROR "invalid post-increment offset" + VPMULL V1.D1, V2.H4, V3.Q1 // ERROR "invalid arrangement" + VPMULL V1.H4, V2.H4, V3.Q1 // ERROR "invalid arrangement" + VPMULL V1.D2, V2.D2, V3.Q1 // ERROR "invalid arrangement" + VPMULL V1.B16, V2.B16, V3.H8 // ERROR "invalid arrangement" + VPMULL2 V1.D2, V2.H4, V3.Q1 // ERROR "invalid arrangement" + VPMULL2 V1.H4, V2.H4, V3.Q1 // ERROR "invalid arrangement" + VPMULL2 V1.D1, V2.D1, V3.Q1 // ERROR "invalid arrangement" + VPMULL2 V1.B8, V2.B8, V3.H8 // ERROR "invalid arrangement" + VEXT $8, V1.B16, V2.B8, V2.B16 // ERROR "invalid arrangement" + VEXT $8, V1.H8, V2.H8, V2.H8 // ERROR "invalid arrangement" + VRBIT V1.B16, V2.B8 // ERROR "invalid arrangement" + VRBIT V1.H4, V2.H4 // ERROR "invalid arrangement" + VUSHR $56, V1.D2, V2.H4 // ERROR "invalid arrangement" + VUSHR $127, V1.D2, V2.D2 // ERROR "shift out of range" RET |