diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-02-21 18:09:45 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-02-21 18:09:45 +0000 |
commit | 0f522ca9b97344e8ce94c35b44c66295c77f1465 (patch) | |
tree | 93c5b5dde8398abd8e5bb43e6d591b2ed1e5f142 /gas/config/tc-i386.c | |
parent | d5fcd7aa2278bb0097cfceb1dba0e2d2c89f20ac (diff) | |
download | binutils-redhat-0f522ca9b97344e8ce94c35b44c66295c77f1465.tar.gz |
Add HLEPrefixNone/HLEPrefixLock/HLEPrefixAny/HLEPrefixRelease
gas/
2012-02-21 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
HLEPrefixAny and HLEPrefixRelease.
opcodes/
2012-02-21 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.h (HLEPrefixNone): New.
(HLEPrefixLock): Likewise.
(HLEPrefixAny): Likewise.
(HLEPrefixRelease): Likewise.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r-- | gas/config/tc-i386.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 97cb68e02a..144883e878 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -3015,7 +3015,7 @@ check_hle (void) { default: abort (); - case 0: + case HLEPrefixNone: if (i.prefix[HLE_PREFIX] == XACQUIRE_PREFIX_OPCODE) as_bad (_("invalid instruction `%s' after `xacquire'"), i.tm.name); @@ -3023,7 +3023,7 @@ check_hle (void) 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) @@ -3031,9 +3031,9 @@ check_hle (void) 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"), |