summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/arm/neon-addressing-bad.s
diff options
context:
space:
mode:
authorwillnewton <willnewton>2013-08-23 07:16:56 +0000
committerwillnewton <willnewton>2013-08-23 07:16:56 +0000
commit9fce57aaed76c9a7de8a66c212219f9889681da0 (patch)
tree9e867460cbd3ed8678922de02930be0c7e8a841b /gas/testsuite/gas/arm/neon-addressing-bad.s
parent60f561a936433831199b7fcb23ca85dc934c0f02 (diff)
downloadbinutils-redhat-9fce57aaed76c9a7de8a66c212219f9889681da0.tar.gz
gas/config/tc-arm.c: Improve validation of NEON addressing modes.
NEON vector load and store instructions do not accept immediates or pre-indexed base plus offset addressing modes, so make sure that the assembler enforces this. gas/ChangeLog: 2013-08-23 Will Newton <will.newton@linaro.org> * config/tc-arm.c (do_neon_ldx_stx): Add extra constraints for pre-indexed addressing modes. * testsuite/gas/arm/neon-addressing-bad.l: Add test for VLDn and VSTn instructions. * testsuite/gas/arm/neon-addressing-bad.s: Likewise. gas/testsuite/ChangeLog: 2013-08-23 Will Newton <will.newton@linaro.org> * testsuite/gas/arm/neon-addressing-bad.l: Add test for VLDn and VSTn instructions. * testsuite/gas/arm/neon-addressing-bad.s: Likewise.
Diffstat (limited to 'gas/testsuite/gas/arm/neon-addressing-bad.s')
-rw-r--r--gas/testsuite/gas/arm/neon-addressing-bad.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/testsuite/gas/arm/neon-addressing-bad.s b/gas/testsuite/gas/arm/neon-addressing-bad.s
index c27b172685..6f7e769155 100644
--- a/gas/testsuite/gas/arm/neon-addressing-bad.s
+++ b/gas/testsuite/gas/arm/neon-addressing-bad.s
@@ -14,6 +14,10 @@ VST1.8 {D0[]}, [R0]
VST2.8 {D0[], D2[]}, [R0]
VST3.16 {D0[], D1[], D2[]}, [R0]
VST4.32 {D0[], D1[], D2[], D3[]}, [R0]
+VLD1.8 {Q0}, [R0, #8]
+VLD1.8 {Q0}, [R0, #8]!
+VLD1.8 {Q0}, [R0, R1]
+VLD1.8 {Q0}, [R0, R1]!
.thumb
VLD1.8 {d0}, 2f
2: