Skip to content

Commit

Permalink
The h modifier is only supported by reg_abcd
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed May 18, 2020
1 parent 9ac4ef4 commit ddcdea4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/librustc_target/asm/x86.rs
Expand Up @@ -19,7 +19,7 @@ impl X86InlineAsmRegClass {
match self {
Self::reg => {
if arch == InlineAsmArch::X86_64 {
&['l', 'h', 'x', 'e', 'r']
&['l', 'x', 'e', 'r']
} else {
&['x', 'e']
}
Expand Down
7 changes: 0 additions & 7 deletions src/test/assembly/asm/x86-modifiers.rs
Expand Up @@ -63,13 +63,6 @@ check!(reg "" reg "mov");
#[cfg(x86_64)]
check!(reg_l "l" reg "mov");

// x86_64-LABEL: reg_h:
// x86_64: #APP
// x86_64: mov ah, ah
// x86_64: #NO_APP
#[cfg(x86_64)]
check!(reg_h "h" reg "mov");

// CHECK-LABEL: reg_x:
// CHECK: #APP
// CHECK: mov ax, ax
Expand Down

0 comments on commit ddcdea4

Please sign in to comment.