aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/asm/internal/asm/testdata/arm64error.s
diff options
context:
space:
mode:
authorfanzha02 <fannie.zhang@arm.com>2018-09-10 02:22:48 +0000
committerCherry Zhang <cherryyz@google.com>2018-09-12 15:45:13 +0000
commite7f5f3eca42a98340e4eb4fc5d490a9aa4bd5054 (patch)
treeb21f9398016f2eaa4e4ab13400845488bc665b56 /src/cmd/asm/internal/asm/testdata/arm64error.s
parentd5377c2026b18e1307c6fd243ece98afc6330b71 (diff)
downloadgo-e7f5f3eca42a98340e4eb4fc5d490a9aa4bd5054.tar.gz
go-e7f5f3eca42a98340e4eb4fc5d490a9aa4bd5054.zip
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>
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 bbdce479c5..357db80222 100644
--- a/src/cmd/asm/internal/asm/testdata/arm64error.s
+++ b/src/cmd/asm/internal/asm/testdata/arm64error.s
@@ -110,4 +110,6 @@ TEXT errors(SB),$0
FLDPD (R1), (F2, F2) // ERROR "constrained unpredictable behavior"
FLDPS (R2), (F3, F3) // ERROR "constrained unpredictable behavior"
FSTPD (R1, R2), (R0) // ERROR "invalid register pair"
+ FMOVS (F2), F0 // ERROR "illegal combination"
+ FMOVD F0, (F1) // ERROR "illegal combination"
RET