diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2021-04-04 17:44:46 +0100 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2021-04-05 13:38:24 +0100 |
| commit | b1bcff0731f5ce5f9c2de2779b36f94b44946bc6 (patch) | |
| tree | 3200a7de727e68fb1e9f1898f80c7bdc0ede7c13 /src/test/assembly | |
| parent | cbd6ec760453b333e86aac106f47fe9132498924 (diff) | |
| download | rust-b1bcff0731f5ce5f9c2de2779b36f94b44946bc6.tar.gz rust-b1bcff0731f5ce5f9c2de2779b36f94b44946bc6.zip | |
Disallow the use of high byte registes as operands on x86_64
They are still allowed on x86 though. Fixes #83495
Diffstat (limited to 'src/test/assembly')
| -rw-r--r-- | src/test/assembly/asm/x86-types.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/test/assembly/asm/x86-types.rs b/src/test/assembly/asm/x86-types.rs index e0190d3bdae..b65b727d225 100644 --- a/src/test/assembly/asm/x86-types.rs +++ b/src/test/assembly/asm/x86-types.rs @@ -748,10 +748,11 @@ check_reg!(eax_f64 f64 "eax" "mov"); // CHECK: #NO_APP check_reg!(eax_ptr ptr "eax" "mov"); -// CHECK-LABEL: ah_byte: -// CHECK: #APP -// CHECK: mov ah, ah -// CHECK: #NO_APP +// i686-LABEL: ah_byte: +// i686: #APP +// i686: mov ah, ah +// i686: #NO_APP +#[cfg(i686)] check_reg!(ah_byte i8 "ah" "mov"); // CHECK-LABEL: xmm0_i32: |
