* gas/arm/neon-vmov-bad.d: New file.
authorNick Clifton <nickc@redhat.com>
Fri, 15 Feb 2013 10:07:47 +0000 (10:07 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 15 Feb 2013 10:07:47 +0000 (10:07 +0000)
        * gas/arm/neon-vmov-bad.s: Likewise.
        * gas/arm/neon-vmov-bad.l: Likewise.

        * config/tc-arm.c (do_neon_mov): Break on NS_NULL.

gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/neon-vmov-bad.d [new file with mode: 0644]
gas/testsuite/gas/arm/neon-vmov-bad.l [new file with mode: 0644]
gas/testsuite/gas/arm/neon-vmov-bad.s [new file with mode: 0644]

index f2c4dde028b58ad2dfae5eba6c33775c26cb09f3..62eeee36cb98ed018843ef61b998f2aa5873d021 100644 (file)
@@ -1,3 +1,7 @@
+2013-02-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+        * config/tc-arm.c (do_neon_mov): Break on NS_NULL.
+
 2013-02-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
 
        * configure.tgt: Add nios2-*-rtems*.
index 7107bbd6e72f63b285de133eab17520f5e3b528c..c7e6f344df7669e7160316523c33d23e16ce0f45 100644 (file)
@@ -15494,6 +15494,11 @@ do_neon_mov (void)
       do_vfp_nsyn_opcode ("fmsrr");
       break;
 
+    case NS_NULL:
+      /* neon_select_shape has determined that the instruction
+        shape is wrong and has already set the error message.  */
+      break;
+
     default:
       abort ();
     }
index 74cbc674d5825197da0c370917c1326c9d266f5a..5497dd756c8df85aec4a17731beac278a5318585 100644 (file)
@@ -1,3 +1,9 @@
+2013-02-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+        * gas/arm/neon-vmov-bad.d: New file.
+        * gas/arm/neon-vmov-bad.s: Likewise.
+        * gas/arm/neon-vmov-bad.l: Likewise.
+
 2013-02-14  Yufeng Zhang  <yufeng.zhang@arm.com>
 
        * gas/aarch64/system.s: Add tests.
diff --git a/gas/testsuite/gas/arm/neon-vmov-bad.d b/gas/testsuite/gas/arm/neon-vmov-bad.d
new file mode 100644 (file)
index 0000000..47ba4d8
--- /dev/null
@@ -0,0 +1,3 @@
+# name: Bad shape for vmov
+# as: -mfpu=neon
+# error-output: neon-vmov-bad.l
diff --git a/gas/testsuite/gas/arm/neon-vmov-bad.l b/gas/testsuite/gas/arm/neon-vmov-bad.l
new file mode 100644 (file)
index 0000000..543dd37
--- /dev/null
@@ -0,0 +1,2 @@
+[^:]*: Assembler messages:
+[^:]*:3: Error: invalid instruction shape -- `vmov Q0,d0'
diff --git a/gas/testsuite/gas/arm/neon-vmov-bad.s b/gas/testsuite/gas/arm/neon-vmov-bad.s
new file mode 100644 (file)
index 0000000..ec87eea
--- /dev/null
@@ -0,0 +1,3 @@
+.syntax unified
+.arm
+       vmov    Q0, d0