llvm/llvm/test/MC/Disassembler/X86/sm3-64.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:   vsm3msg1 %xmm4, %xmm13, %xmm12
# INTEL: vsm3msg1 xmm12, xmm13, xmm4
0xc4,0x62,0x10,0xda,0xe4

# ATT:   vsm3msg1  268435456(%rbp,%r14,8), %xmm13, %xmm12
# INTEL: vsm3msg1 xmm12, xmm13, xmmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x10,0xda,0xa4,0xf5,0x00,0x00,0x00,0x10

# ATT:   vsm3msg1  291(%r8,%rax,4), %xmm13, %xmm12
# INTEL: vsm3msg1 xmm12, xmm13, xmmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x10,0xda,0xa4,0x80,0x23,0x01,0x00,0x00

# ATT:   vsm3msg1  (%rip), %xmm13, %xmm12
# INTEL: vsm3msg1 xmm12, xmm13, xmmword ptr [rip]
0xc4,0x62,0x10,0xda,0x25,0x00,0x00,0x00,0x00

# ATT:   vsm3msg1  -512(,%rbp,2), %xmm13, %xmm12
# INTEL: vsm3msg1 xmm12, xmm13, xmmword ptr [2*rbp - 512]
0xc4,0x62,0x10,0xda,0x24,0x6d,0x00,0xfe,0xff,0xff

# ATT:   vsm3msg1  2032(%rcx), %xmm13, %xmm12
# INTEL: vsm3msg1 xmm12, xmm13, xmmword ptr [rcx + 2032]
0xc4,0x62,0x10,0xda,0xa1,0xf0,0x07,0x00,0x00

# ATT:   vsm3msg1  -2048(%rdx), %xmm13, %xmm12
# INTEL: vsm3msg1 xmm12, xmm13, xmmword ptr [rdx - 2048]
0xc4,0x62,0x10,0xda,0xa2,0x00,0xf8,0xff,0xff

# ATT:   vsm3msg2 %xmm4, %xmm13, %xmm12
# INTEL: vsm3msg2 xmm12, xmm13, xmm4
0xc4,0x62,0x11,0xda,0xe4

# ATT:   vsm3msg2  268435456(%rbp,%r14,8), %xmm13, %xmm12
# INTEL: vsm3msg2 xmm12, xmm13, xmmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x11,0xda,0xa4,0xf5,0x00,0x00,0x00,0x10

# ATT:   vsm3msg2  291(%r8,%rax,4), %xmm13, %xmm12
# INTEL: vsm3msg2 xmm12, xmm13, xmmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x11,0xda,0xa4,0x80,0x23,0x01,0x00,0x00

# ATT:   vsm3msg2  (%rip), %xmm13, %xmm12
# INTEL: vsm3msg2 xmm12, xmm13, xmmword ptr [rip]
0xc4,0x62,0x11,0xda,0x25,0x00,0x00,0x00,0x00

# ATT:   vsm3msg2  -512(,%rbp,2), %xmm13, %xmm12
# INTEL: vsm3msg2 xmm12, xmm13, xmmword ptr [2*rbp - 512]
0xc4,0x62,0x11,0xda,0x24,0x6d,0x00,0xfe,0xff,0xff

# ATT:   vsm3msg2  2032(%rcx), %xmm13, %xmm12
# INTEL: vsm3msg2 xmm12, xmm13, xmmword ptr [rcx + 2032]
0xc4,0x62,0x11,0xda,0xa1,0xf0,0x07,0x00,0x00

# ATT:   vsm3msg2  -2048(%rdx), %xmm13, %xmm12
# INTEL: vsm3msg2 xmm12, xmm13, xmmword ptr [rdx - 2048]
0xc4,0x62,0x11,0xda,0xa2,0x00,0xf8,0xff,0xff

# ATT:   vsm3rnds2 $123, %xmm4, %xmm13, %xmm12
# INTEL: vsm3rnds2 xmm12, xmm13, xmm4, 123
0xc4,0x63,0x11,0xde,0xe4,0x7b

# ATT:   vsm3rnds2  $123, 268435456(%rbp,%r14,8), %xmm13, %xmm12
# INTEL: vsm3rnds2 xmm12, xmm13, xmmword ptr [rbp + 8*r14 + 268435456], 123
0xc4,0x23,0x11,0xde,0xa4,0xf5,0x00,0x00,0x00,0x10,0x7b

# ATT:   vsm3rnds2  $123, 291(%r8,%rax,4), %xmm13, %xmm12
# INTEL: vsm3rnds2 xmm12, xmm13, xmmword ptr [r8 + 4*rax + 291], 123
0xc4,0x43,0x11,0xde,0xa4,0x80,0x23,0x01,0x00,0x00,0x7b

# ATT:   vsm3rnds2  $123, (%rip), %xmm13, %xmm12
# INTEL: vsm3rnds2 xmm12, xmm13, xmmword ptr [rip], 123
0xc4,0x63,0x11,0xde,0x25,0x00,0x00,0x00,0x00,0x7b

# ATT:   vsm3rnds2  $123, -512(,%rbp,2), %xmm13, %xmm12
# INTEL: vsm3rnds2 xmm12, xmm13, xmmword ptr [2*rbp - 512], 123
0xc4,0x63,0x11,0xde,0x24,0x6d,0x00,0xfe,0xff,0xff,0x7b

# ATT:   vsm3rnds2  $123, 2032(%rcx), %xmm13, %xmm12
# INTEL: vsm3rnds2 xmm12, xmm13, xmmword ptr [rcx + 2032], 123
0xc4,0x63,0x11,0xde,0xa1,0xf0,0x07,0x00,0x00,0x7b

# ATT:   vsm3rnds2  $123, -2048(%rdx), %xmm13, %xmm12
# INTEL: vsm3rnds2 xmm12, xmm13, xmmword ptr [rdx - 2048], 123
0xc4,0x63,0x11,0xde,0xa2,0x00,0xf8,0xff,0xff,0x7b