aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/arm/neon-addressing-bad.l12
-rw-r--r--gas/testsuite/gas/arm/neon-addressing-bad.s27
3 files changed, 45 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index a547a3b..ef359a1 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2015-01-12 Jan Beulich <jbeulich@suse.com>
+
+ * gas/arm/neon-addressing-bad.s: Add test for invalid VSHL,
+ VQSHL, and VQSHLU immediates.
+ * gas/arm/neon-addressing-bad.l: Update accordingly.
+
2015-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
* gas/avr/large-debug-line-table.d: New file.
diff --git a/gas/testsuite/gas/arm/neon-addressing-bad.l b/gas/testsuite/gas/arm/neon-addressing-bad.l
index 38e1801..4f7f533 100644
--- a/gas/testsuite/gas/arm/neon-addressing-bad.l
+++ b/gas/testsuite/gas/arm/neon-addressing-bad.l
@@ -25,3 +25,15 @@
[^:]*:29: Error: r15 not allowed here -- `vst1.8 {Q1},R0'
[^:]*:30: Error: r15 not allowed here -- `vst1.8 {D0},\[PC\]'
[^:]*:31: Error: r15 not allowed here -- `vst1.8 {D0},\[PC,#0\]'
+[^:]*:34: Error: immediate out of range for shift -- `vshl.i8 d0,d0,#8'
+[^:]*:36: Error: immediate out of range for shift -- `vshl.i16 d0,d0,#16'
+[^:]*:38: Error: immediate out of range for shift -- `vshl.i32 d0,d0,#32'
+[^:]*:40: Error: .* -- `vshl.i64 d0,d0,#64'
+[^:]*:43: Error: immediate out of range for shift -- `vqshl.s8 d0,d0,#8'
+[^:]*:45: Error: immediate out of range for shift -- `vqshl.s16 d0,d0,#16'
+[^:]*:47: Error: immediate out of range for shift -- `vqshl.s32 d0,d0,#32'
+[^:]*:49: Error: .* -- `vqshl.s64 d0,d0,#64'
+[^:]*:52: Error: immediate out of range for shift -- `vqshlu.s8 d0,d0,#8'
+[^:]*:54: Error: immediate out of range for shift -- `vqshlu.s16 d0,d0,#16'
+[^:]*:56: Error: immediate out of range for shift -- `vqshlu.s32 d0,d0,#32'
+[^:]*:58: Error: .* -- `vqshlu.s64 d0,d0,#64'
diff --git a/gas/testsuite/gas/arm/neon-addressing-bad.s b/gas/testsuite/gas/arm/neon-addressing-bad.s
index 6f7e769..9cb7b4d 100644
--- a/gas/testsuite/gas/arm/neon-addressing-bad.s
+++ b/gas/testsuite/gas/arm/neon-addressing-bad.s
@@ -29,3 +29,30 @@ VST1.8 {D0}, R0
VST1.8 {Q1}, R0
VST1.8 {D0}, [PC]
VST1.8 {D0}, [PC, #0]
+
+VSHL.I8 d0, d0, #7
+VSHL.I8 d0, d0, #8
+VSHL.I16 d0, d0, #15
+VSHL.I16 d0, d0, #16
+VSHL.I32 d0, d0, #31
+VSHL.I32 d0, d0, #32
+VSHL.I64 d0, d0, #63
+VSHL.I64 d0, d0, #64
+
+VQSHL.S8 d0, d0, #7
+VQSHL.S8 d0, d0, #8
+VQSHL.S16 d0, d0, #15
+VQSHL.S16 d0, d0, #16
+VQSHL.S32 d0, d0, #31
+VQSHL.S32 d0, d0, #32
+VQSHL.S64 d0, d0, #63
+VQSHL.S64 d0, d0, #64
+
+VQSHLU.S8 d0, d0, #7
+VQSHLU.S8 d0, d0, #8
+VQSHLU.S16 d0, d0, #15
+VQSHLU.S16 d0, d0, #16
+VQSHLU.S32 d0, d0, #31
+VQSHLU.S32 d0, d0, #32
+VQSHLU.S64 d0, d0, #63
+VQSHLU.S64 d0, d0, #64