diff options
author | Daniel Gutson <dgutson@codesourcery.com> | 2010-01-04 22:19:03 +0000 |
---|---|---|
committer | Daniel Gutson <dgutson@codesourcery.com> | 2010-01-04 22:19:03 +0000 |
commit | b1a769ed35c533e5f03fc2214ab31571f4677e22 (patch) | |
tree | 8868f2d9bdc086ac00128494247ade47869beef1 /gas/testsuite/gas | |
parent | 55a2bb35466651972b102f5f8b5ec53a17be5b55 (diff) | |
download | ppe42-binutils-b1a769ed35c533e5f03fc2214ab31571f4677e22.tar.gz ppe42-binutils-b1a769ed35c533e5f03fc2214ab31571f4677e22.zip |
2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
gas/
* config/tc-arm.c (do_neon_ldx_stx): Added
validation for vector load/store insns.
gas/testsuite/
* gas/arm/neon-addressing-bad.d: New test case.
* gas/arm/neon-addressing-bad.s: New file.
* gas/arm/neon-addressing-bad.l: New file.
Diffstat (limited to 'gas/testsuite/gas')
-rw-r--r-- | gas/testsuite/gas/arm/neon-addressing-bad.d | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/neon-addressing-bad.l | 19 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/neon-addressing-bad.s | 23 |
3 files changed, 45 insertions, 0 deletions
diff --git a/gas/testsuite/gas/arm/neon-addressing-bad.d b/gas/testsuite/gas/arm/neon-addressing-bad.d new file mode 100644 index 0000000000..3e27426d43 --- /dev/null +++ b/gas/testsuite/gas/arm/neon-addressing-bad.d @@ -0,0 +1,3 @@ +# name: Bad operand in Advanced SIMD Neon instructions +# as: -mfpu=neon +# error-output: neon-addressing-bad.l diff --git a/gas/testsuite/gas/arm/neon-addressing-bad.l b/gas/testsuite/gas/arm/neon-addressing-bad.l new file mode 100644 index 0000000000..360a89186e --- /dev/null +++ b/gas/testsuite/gas/arm/neon-addressing-bad.l @@ -0,0 +1,19 @@ +[^:]*: Assembler messages: +[^:]*:3: Error: r15 not allowed here -- `vld1.8 {d0},1f' +[^:]*:5: Error: r15 not allowed here -- `vld1.8 {D0},R0' +[^:]*:6: Error: r15 not allowed here -- `vld1.8 {Q1},R0' +[^:]*:7: Error: r15 not allowed here -- `vld1.8 {D0},\[PC\]' +[^:]*:8: Error: r15 not allowed here -- `vld1.8 {D0},\[PC,#0\]' +[^:]*:9: Error: r15 not allowed here -- `vst1.8 {D0},R0' +[^:]*:10: Error: r15 not allowed here -- `vst1.8 {Q1},R0' +[^:]*:11: Error: r15 not allowed here -- `vst1.8 {D0},\[PC\]' +[^:]*:12: Error: r15 not allowed here -- `vst1.8 {D0},\[PC,#0\]' +[^:]*:14: Error: r15 not allowed here -- `vld1.8 {d0},2f' +[^:]*:16: Error: r15 not allowed here -- `vld1.8 {D0},R0' +[^:]*:17: Error: r15 not allowed here -- `vld1.8 {Q1},R0' +[^:]*:18: Error: r15 not allowed here -- `vld1.8 {D0},\[PC\]' +[^:]*:19: Error: r15 not allowed here -- `vld1.8 {D0},\[PC,#0\]' +[^:]*:20: Error: r15 not allowed here -- `vst1.8 {D0},R0' +[^:]*:21: Error: r15 not allowed here -- `vst1.8 {Q1},R0' +[^:]*:22: Error: r15 not allowed here -- `vst1.8 {D0},\[PC\]' +[^:]*:23: Error: r15 not allowed here -- `vst1.8 {D0},\[PC,#0\]' diff --git a/gas/testsuite/gas/arm/neon-addressing-bad.s b/gas/testsuite/gas/arm/neon-addressing-bad.s new file mode 100644 index 0000000000..c134ead657 --- /dev/null +++ b/gas/testsuite/gas/arm/neon-addressing-bad.s @@ -0,0 +1,23 @@ +.syntax unified + +VLD1.8 {d0}, 1f +1: +VLD1.8 {D0}, R0 +VLD1.8 {Q1}, R0 +VLD1.8 {D0}, [PC] +VLD1.8 {D0}, [PC, #0] +VST1.8 {D0}, R0 +VST1.8 {Q1}, R0 +VST1.8 {D0}, [PC] +VST1.8 {D0}, [PC, #0] +.thumb +VLD1.8 {d0}, 2f +2: +VLD1.8 {D0}, R0 +VLD1.8 {Q1}, R0 +VLD1.8 {D0}, [PC] +VLD1.8 {D0}, [PC, #0] +VST1.8 {D0}, R0 +VST1.8 {Q1}, R0 +VST1.8 {D0}, [PC] +VST1.8 {D0}, [PC, #0] |