aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i386-intel.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-03-30 14:08:48 +0200
committerJan Beulich <jbeulich@suse.com>2021-03-30 14:08:48 +0200
commit346848622660e06b352613d425fe6ad67194ed14 (patch)
tree0496b3e75a3aff2756eb607f32265f02c7ff1275 /gas/config/tc-i386-intel.c
parent6288d05f11827f993308e6a2693516e2c123c0fb (diff)
downloadbinutils-346848622660e06b352613d425fe6ad67194ed14.zip
binutils-346848622660e06b352613d425fe6ad67194ed14.tar.gz
binutils-346848622660e06b352613d425fe6ad67194ed14.tar.bz2
x86: drop REGNAM_{AL,AX,EAX}
The former two are unused anyway. And having such constants isn't very helpful either, when they live in a place where updating the register table wouldn't even allow noticing the need to adjust these constants.
Diffstat (limited to 'gas/config/tc-i386-intel.c')
-rw-r--r--gas/config/tc-i386-intel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-i386-intel.c b/gas/config/tc-i386-intel.c
index 4c9f0b7..e61e757 100644
--- a/gas/config/tc-i386-intel.c
+++ b/gas/config/tc-i386-intel.c
@@ -335,7 +335,7 @@ i386_intel_simplify_register (expressionS *e)
else
{
/* esp is invalid as index */
- intel_state.index = i386_regtab + REGNAM_EAX + ESP_REG_NUM;
+ intel_state.index = reg_eax + ESP_REG_NUM;
}
return 2;
}
@@ -500,7 +500,7 @@ static int i386_intel_simplify (expressionS *e)
break;
default:
/* esp is invalid as index */
- intel_state.index = i386_regtab + REGNAM_EAX + ESP_REG_NUM;
+ intel_state.index = reg_eax + ESP_REG_NUM;
break;
}