Disallow the use of high byte registes as operands on x86_64

They are still allowed on x86 though.

Fixes #83495
This commit is contained in:
Amanieu d'Antras
2021-04-04 17:44:46 +01:00
parent cbd6ec7604
commit b1bcff0731
8 changed files with 25 additions and 24 deletions

View File

@@ -52,7 +52,6 @@ fn not_e(
_arch: InlineAsmArch,
mut has_feature: impl FnMut(&str) -> bool,
_target: &Target,
_allocating: bool,
) -> Result<(), &'static str> {
if has_feature("e") {
Err("register can't be used with the `e` target feature")