llvm/llvm/test/MC/Disassembler/X86/apx/user-msr.txt

# RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s --check-prefixes=ATT
# RUN: llvm-mc --disassemble %s -triple=x86_64 -x86-asm-syntax=intel --output-asm-variant=1 | FileCheck %s --check-prefixes=INTEL

## urdmsr

# ATT:   urdmsr	$123, %r9
# INTEL: urdmsr	r9, 123
0x62,0xd7,0x7f,0x08,0xf8,0xc1,0x7b,0x00,0x00,0x00

# ATT:   urdmsr	%r9, %r15
# INTEL: urdmsr	r15, r9
0x62,0x54,0x7f,0x08,0xf8,0xf9

# ATT:   urdmsr	$123, %r19
# INTEL: urdmsr	r19, 123
0x62,0xff,0x7f,0x08,0xf8,0xc3,0x7b,0x00,0x00,0x00

# ATT:   urdmsr	%r19, %r23
# INTEL: urdmsr	r23, r19
0x62,0xec,0x7f,0x08,0xf8,0xfb

## uwrmsr

# ATT:   uwrmsr	%r9, $123
# INTEL: uwrmsr	123, r9
0x62,0xd7,0x7e,0x08,0xf8,0xc1,0x7b,0x00,0x00,0x00

# ATT:   uwrmsr	%r9, %r15
# INTEL: uwrmsr	r15, r9
0x62,0x54,0x7e,0x08,0xf8,0xf9

# ATT:   uwrmsr	%r19, $123
# INTEL: uwrmsr	123, r19
0x62,0xff,0x7e,0x08,0xf8,0xc3,0x7b,0x00,0x00,0x00

# ATT:   uwrmsr	%r19, %r23
# INTEL: uwrmsr	r23, r19
0x62,0xec,0x7e,0x08,0xf8,0xfb