+2012-02-21 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
+ HLEPrefixAny and HLEPrefixRelease.
+
2012-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
{
default:
abort ();
- case 0:
+ case HLEPrefixNone:
if (i.prefix[HLE_PREFIX] == XACQUIRE_PREFIX_OPCODE)
as_bad (_("invalid instruction `%s' after `xacquire'"),
i.tm.name);
as_bad (_("invalid instruction `%s' after `xrelease'"),
i.tm.name);
return 0;
- case 1:
+ case HLEPrefixLock:
if (i.prefix[LOCK_PREFIX])
return 1;
if (i.prefix[HLE_PREFIX] == XACQUIRE_PREFIX_OPCODE)
else
as_bad (_("missing `lock' with `xrelease'"));
return 0;
- case 2:
+ case HLEPrefixAny:
return 1;
- case 3:
+ case HLEPrefixRelease:
if (i.prefix[HLE_PREFIX] != XRELEASE_PREFIX_OPCODE)
{
as_bad (_("instruction `%s' after `xacquire' not allowed"),
+2012-02-21 H.J. Lu <hongjiu.lu@intel.com>
+
+ * i386-opc.h (HLEPrefixNone): New.
+ (HLEPrefixLock): Likewise.
+ (HLEPrefixAny): Likewise.
+ (HLEPrefixRelease): Likewise.
+
2012-02-08 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (HLE_Fixup1): New.
2. With or without a LOCK prefix.
3. With a RELEASE (0xf3) prefix.
*/
+#define HLEPrefixNone 0
+#define HLEPrefixLock 1
+#define HLEPrefixAny 2
+#define HLEPrefixRelease 3
HLEPrefixOk,
/* Convert to DWORD */
ToDword,