llvm/llvm/test/MC/Disassembler/X86/lkgs.txt

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

# ATT:   lkgs %ax
# INTEL: lkgs ax
0xf2,0x0f,0x00,0xf0

# ATT:   lkgs %r12w
# INTEL: lkgs r12w
0xf2,0x41,0x0f,0x00,0xf4

# ATT:   lkgs  268435456(%rbp,%r14,8)
# INTEL: lkgs word ptr [rbp + 8*r14 + 268435456]
0xf2,0x42,0x0f,0x00,0xb4,0xf5,0x00,0x00,0x00,0x10

# ATT:   lkgs  291(%r8,%rax,4)
# INTEL: lkgs word ptr [r8 + 4*rax + 291]
0xf2,0x41,0x0f,0x00,0xb4,0x80,0x23,0x01,0x00,0x00

# ATT:   lkgs  (%rip)
# INTEL: lkgs word ptr [rip]
0xf2,0x0f,0x00,0x35,0x00,0x00,0x00,0x00

# ATT:   lkgs  -64(,%rbp,2)
# INTEL: lkgs word ptr [2*rbp - 64]
0xf2,0x0f,0x00,0x34,0x6d,0xc0,0xff,0xff,0xff

# ATT:   lkgs  254(%rcx)
# INTEL: lkgs word ptr [rcx + 254]
0xf2,0x0f,0x00,0xb1,0xfe,0x00,0x00,0x00

# ATT:   lkgs  -256(%rdx)
# INTEL: lkgs word ptr [rdx - 256]
0xf2,0x0f,0x00,0xb2,0x00,0xff,0xff,0xff