diff options
author | Jan Beulich <jbeulich@suse.com> | 2023-12-01 08:26:36 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2023-12-01 08:26:36 +0100 |
commit | 1f865bae65db9588f6994c02a92355bfb4e3d955 (patch) | |
tree | 09535aa56d24787842ef624d8c7fb25c0bdd19a7 /gas | |
parent | a521809d9b182d2863e2b0cf69270d1cef1da507 (diff) | |
download | gdb-1f865bae65db9588f6994c02a92355bfb4e3d955.zip gdb-1f865bae65db9588f6994c02a92355bfb4e3d955.tar.gz gdb-1f865bae65db9588f6994c02a92355bfb4e3d955.tar.bz2 |
x86: allow 32-bit reg to be used with U{RD,WR}MSR
... as MSR index specifier: It is unreasonable to demand that people
write less readable / understandable code, just because the present
documentation mentions only Reg64. Whether to also adjust the
disassembler is a separate question, perhaps indeed more tightly tied
to what the spec says.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-user_msr.s | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/testsuite/gas/i386/x86-64-user_msr.s b/gas/testsuite/gas/i386/x86-64-user_msr.s index 63bc6c1..b3eb7b0 100644 --- a/gas/testsuite/gas/i386/x86-64-user_msr.s +++ b/gas/testsuite/gas/i386/x86-64-user_msr.s @@ -5,7 +5,7 @@ _start: urdmsr %r14, %r12 urdmsr %r14, %rax urdmsr %rdx, %r12 - urdmsr %rdx, %rax + urdmsr %edx, %rax urdmsr $51515151, %r12 urdmsr $51515151, %rax urdmsr $0x7f, %r12 @@ -14,7 +14,7 @@ _start: uwrmsr %r12, %r14 uwrmsr %rax, %r14 uwrmsr %r12, %rdx - uwrmsr %rax, %rdx + uwrmsr %rax, %edx uwrmsr %r12, $51515151 uwrmsr %rax, $51515151 uwrmsr %r12, $0x7f @@ -24,7 +24,7 @@ _start: .intel_syntax noprefix urdmsr r12, r14 urdmsr rax, r14 - urdmsr r12, rdx + urdmsr r12, edx urdmsr rax, rdx urdmsr r12, 51515151 urdmsr rax, 51515151 @@ -33,7 +33,7 @@ _start: urdmsr r12, 0x80000000 uwrmsr r14, r12 uwrmsr r14, rax - uwrmsr rdx, r12 + uwrmsr edx, r12 uwrmsr rdx, rax uwrmsr 51515151, r12 uwrmsr 51515151, rax |