2010-09-27 Tejas Belagod <tejas.belagod@arm.com>
[deliverable/binutils-gdb.git] / gas / config / tc-arm.c
index e4bd9f1704e1e62f96d3511f98ce3631976a427e..fc3d63d5e522c3033c69f097dc8d67f3784c1bea 100644 (file)
@@ -14885,6 +14885,18 @@ do_neon_ldr_str (void)
 {
   int is_ldr = (inst.instruction & (1 << 20)) != 0;
 
+  /* Use of PC in vstr in ARM mode is deprecated in ARMv7.
+     And is UNPREDICTABLE in thumb mode.  */
+  if (!is_ldr 
+      && inst.operands[1].reg == REG_PC
+      && ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v7))
+    {
+      if (!thumb_mode && warn_on_deprecated)
+       as_warn (_("Use of PC here is deprecated"));
+      else
+       inst.error = _("Use of PC here is UNPREDICTABLE");
+    }
+
   if (inst.operands[0].issingle)
     {
       if (is_ldr)
This page took 0.029055 seconds and 4 git commands to generate.