From c79316b3f1cea0f22380895ce7a6504405c8d96f Mon Sep 17 00:00:00 2001
From: Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
Date: Fri, 24 Aug 2012 07:52:49 +0000
Subject: [PATCH] 	* gas/config/tc-arm.c (check_obsolete): New function. 
 (do_rd_rm_rn): Check swp{b} for obsoletion. 	*
 gas/testsuite/gas/arm/armv8-a-bad.d: New testcase. 	*
 gas/testsuite/gas/arm/armv8-a-bad.l: Likewise. 	*
 gas/testsuite/gas/arm/armv8-a-bad.s: Likewise. 	*
 gas/testsuite/gas/arm/depr-swp.l: Update for change in expected output. 
 * gas/testsuite/gas/arm/depr-swp.s: Add additional test. 	*
 include/opcode/arm.h (ARM_CPU_IS_ANY): New define.

---
 include/ChangeLog    | 4 ++++
 include/opcode/arm.h | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/include/ChangeLog b/include/ChangeLog
index 58ad5ae25..d6b329f96 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
+
+	* opcode/arm.h (ARM_CPU_IS_ANY): New define.
+
 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
 
 	* elf/arm.h (TAG_CPU_ARCH_V8): New define.
diff --git a/include/opcode/arm.h b/include/opcode/arm.h
index 1c350c8b3..1ac38a06f 100644
--- a/include/opcode/arm.h
+++ b/include/opcode/arm.h
@@ -269,6 +269,9 @@ typedef struct
 #define ARM_CPU_HAS_FEATURE(CPU,FEAT) \
   (((CPU).core & (FEAT).core) != 0 || ((CPU).coproc & (FEAT).coproc) != 0)
 
+#define ARM_CPU_IS_ANY(CPU) \
+  ((CPU).core == ((arm_feature_set)ARM_ANY).core)
+
 #define ARM_MERGE_FEATURE_SETS(TARG,F1,F2)	\
   do {						\
     (TARG).core = (F1).core | (F2).core;	\