* 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 f2c4dde..62eeee3 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 7107bbd..c7e6f34 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 74cbc67..5497dd7 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