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

@@ -68,7 +68,6 @@ fn frame_pointer_r11(
_arch: InlineAsmArch,
has_feature: impl FnMut(&str) -> bool,
target: &Target,
_allocating: bool,
) -> Result<(), &'static str> {
if !frame_pointer_is_r7(has_feature, target) {
Err("the frame pointer (r11) cannot be used as an operand for inline asm")
@@ -81,7 +80,6 @@ fn frame_pointer_r7(
_arch: InlineAsmArch,
has_feature: impl FnMut(&str) -> bool,
target: &Target,
_allocating: bool,
) -> Result<(), &'static str> {
if frame_pointer_is_r7(has_feature, target) {
Err("the frame pointer (r7) cannot be used as an operand for inline asm")