# 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: vpdpwsud %ymm4, %ymm13, %ymm12
# INTEL: vpdpwsud ymm12, ymm13, ymm4
0xc4,0x62,0x16,0xd2,0xe4
# ATT: vpdpwsud %xmm4, %xmm13, %xmm12
# INTEL: vpdpwsud xmm12, xmm13, xmm4
0xc4,0x62,0x12,0xd2,0xe4
# ATT: vpdpwsud 268435456(%rbp,%r14,8), %ymm13, %ymm12
# INTEL: vpdpwsud ymm12, ymm13, ymmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x16,0xd2,0xa4,0xf5,0x00,0x00,0x00,0x10
# ATT: vpdpwsud 291(%r8,%rax,4), %ymm13, %ymm12
# INTEL: vpdpwsud ymm12, ymm13, ymmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x16,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: vpdpwsud (%rip), %ymm13, %ymm12
# INTEL: vpdpwsud ymm12, ymm13, ymmword ptr [rip]
0xc4,0x62,0x16,0xd2,0x25,0x00,0x00,0x00,0x00
# ATT: vpdpwsud -1024(,%rbp,2), %ymm13, %ymm12
# INTEL: vpdpwsud ymm12, ymm13, ymmword ptr [2*rbp - 1024]
0xc4,0x62,0x16,0xd2,0x24,0x6d,0x00,0xfc,0xff,0xff
# ATT: vpdpwsud 4064(%rcx), %ymm13, %ymm12
# INTEL: vpdpwsud ymm12, ymm13, ymmword ptr [rcx + 4064]
0xc4,0x62,0x16,0xd2,0xa1,0xe0,0x0f,0x00,0x00
# ATT: vpdpwsud -4096(%rdx), %ymm13, %ymm12
# INTEL: vpdpwsud ymm12, ymm13, ymmword ptr [rdx - 4096]
0xc4,0x62,0x16,0xd2,0xa2,0x00,0xf0,0xff,0xff
# ATT: vpdpwsud 268435456(%rbp,%r14,8), %xmm13, %xmm12
# INTEL: vpdpwsud xmm12, xmm13, xmmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x12,0xd2,0xa4,0xf5,0x00,0x00,0x00,0x10
# ATT: vpdpwsud 291(%r8,%rax,4), %xmm13, %xmm12
# INTEL: vpdpwsud xmm12, xmm13, xmmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x12,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: vpdpwsud (%rip), %xmm13, %xmm12
# INTEL: vpdpwsud xmm12, xmm13, xmmword ptr [rip]
0xc4,0x62,0x12,0xd2,0x25,0x00,0x00,0x00,0x00
# ATT: vpdpwsud -512(,%rbp,2), %xmm13, %xmm12
# INTEL: vpdpwsud xmm12, xmm13, xmmword ptr [2*rbp - 512]
0xc4,0x62,0x12,0xd2,0x24,0x6d,0x00,0xfe,0xff,0xff
# ATT: vpdpwsud 2032(%rcx), %xmm13, %xmm12
# INTEL: vpdpwsud xmm12, xmm13, xmmword ptr [rcx + 2032]
0xc4,0x62,0x12,0xd2,0xa1,0xf0,0x07,0x00,0x00
# ATT: vpdpwsud -2048(%rdx), %xmm13, %xmm12
# INTEL: vpdpwsud xmm12, xmm13, xmmword ptr [rdx - 2048]
0xc4,0x62,0x12,0xd2,0xa2,0x00,0xf8,0xff,0xff
# ATT: vpdpwsuds %ymm4, %ymm13, %ymm12
# INTEL: vpdpwsuds ymm12, ymm13, ymm4
0xc4,0x62,0x16,0xd3,0xe4
# ATT: vpdpwsuds %xmm4, %xmm13, %xmm12
# INTEL: vpdpwsuds xmm12, xmm13, xmm4
0xc4,0x62,0x12,0xd3,0xe4
# ATT: vpdpwsuds 268435456(%rbp,%r14,8), %ymm13, %ymm12
# INTEL: vpdpwsuds ymm12, ymm13, ymmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x16,0xd3,0xa4,0xf5,0x00,0x00,0x00,0x10
# ATT: vpdpwsuds 291(%r8,%rax,4), %ymm13, %ymm12
# INTEL: vpdpwsuds ymm12, ymm13, ymmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x16,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: vpdpwsuds (%rip), %ymm13, %ymm12
# INTEL: vpdpwsuds ymm12, ymm13, ymmword ptr [rip]
0xc4,0x62,0x16,0xd3,0x25,0x00,0x00,0x00,0x00
# ATT: vpdpwsuds -1024(,%rbp,2), %ymm13, %ymm12
# INTEL: vpdpwsuds ymm12, ymm13, ymmword ptr [2*rbp - 1024]
0xc4,0x62,0x16,0xd3,0x24,0x6d,0x00,0xfc,0xff,0xff
# ATT: vpdpwsuds 4064(%rcx), %ymm13, %ymm12
# INTEL: vpdpwsuds ymm12, ymm13, ymmword ptr [rcx + 4064]
0xc4,0x62,0x16,0xd3,0xa1,0xe0,0x0f,0x00,0x00
# ATT: vpdpwsuds -4096(%rdx), %ymm13, %ymm12
# INTEL: vpdpwsuds ymm12, ymm13, ymmword ptr [rdx - 4096]
0xc4,0x62,0x16,0xd3,0xa2,0x00,0xf0,0xff,0xff
# ATT: vpdpwsuds 268435456(%rbp,%r14,8), %xmm13, %xmm12
# INTEL: vpdpwsuds xmm12, xmm13, xmmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x12,0xd3,0xa4,0xf5,0x00,0x00,0x00,0x10
# ATT: vpdpwsuds 291(%r8,%rax,4), %xmm13, %xmm12
# INTEL: vpdpwsuds xmm12, xmm13, xmmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x12,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: vpdpwsuds (%rip), %xmm13, %xmm12
# INTEL: vpdpwsuds xmm12, xmm13, xmmword ptr [rip]
0xc4,0x62,0x12,0xd3,0x25,0x00,0x00,0x00,0x00
# ATT: vpdpwsuds -512(,%rbp,2), %xmm13, %xmm12
# INTEL: vpdpwsuds xmm12, xmm13, xmmword ptr [2*rbp - 512]
0xc4,0x62,0x12,0xd3,0x24,0x6d,0x00,0xfe,0xff,0xff
# ATT: vpdpwsuds 2032(%rcx), %xmm13, %xmm12
# INTEL: vpdpwsuds xmm12, xmm13, xmmword ptr [rcx + 2032]
0xc4,0x62,0x12,0xd3,0xa1,0xf0,0x07,0x00,0x00
# ATT: vpdpwsuds -2048(%rdx), %xmm13, %xmm12
# INTEL: vpdpwsuds xmm12, xmm13, xmmword ptr [rdx - 2048]
0xc4,0x62,0x12,0xd3,0xa2,0x00,0xf8,0xff,0xff
# ATT: vpdpwusd %ymm4, %ymm13, %ymm12
# INTEL: vpdpwusd ymm12, ymm13, ymm4
0xc4,0x62,0x15,0xd2,0xe4
# ATT: vpdpwusd %xmm4, %xmm13, %xmm12
# INTEL: vpdpwusd xmm12, xmm13, xmm4
0xc4,0x62,0x11,0xd2,0xe4
# ATT: vpdpwusd 268435456(%rbp,%r14,8), %ymm13, %ymm12
# INTEL: vpdpwusd ymm12, ymm13, ymmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x15,0xd2,0xa4,0xf5,0x00,0x00,0x00,0x10
# ATT: vpdpwusd 291(%r8,%rax,4), %ymm13, %ymm12
# INTEL: vpdpwusd ymm12, ymm13, ymmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x15,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: vpdpwusd (%rip), %ymm13, %ymm12
# INTEL: vpdpwusd ymm12, ymm13, ymmword ptr [rip]
0xc4,0x62,0x15,0xd2,0x25,0x00,0x00,0x00,0x00
# ATT: vpdpwusd -1024(,%rbp,2), %ymm13, %ymm12
# INTEL: vpdpwusd ymm12, ymm13, ymmword ptr [2*rbp - 1024]
0xc4,0x62,0x15,0xd2,0x24,0x6d,0x00,0xfc,0xff,0xff
# ATT: vpdpwusd 4064(%rcx), %ymm13, %ymm12
# INTEL: vpdpwusd ymm12, ymm13, ymmword ptr [rcx + 4064]
0xc4,0x62,0x15,0xd2,0xa1,0xe0,0x0f,0x00,0x00
# ATT: vpdpwusd -4096(%rdx), %ymm13, %ymm12
# INTEL: vpdpwusd ymm12, ymm13, ymmword ptr [rdx - 4096]
0xc4,0x62,0x15,0xd2,0xa2,0x00,0xf0,0xff,0xff
# ATT: vpdpwusd 268435456(%rbp,%r14,8), %xmm13, %xmm12
# INTEL: vpdpwusd xmm12, xmm13, xmmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x11,0xd2,0xa4,0xf5,0x00,0x00,0x00,0x10
# ATT: vpdpwusd 291(%r8,%rax,4), %xmm13, %xmm12
# INTEL: vpdpwusd xmm12, xmm13, xmmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x11,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: vpdpwusd (%rip), %xmm13, %xmm12
# INTEL: vpdpwusd xmm12, xmm13, xmmword ptr [rip]
0xc4,0x62,0x11,0xd2,0x25,0x00,0x00,0x00,0x00
# ATT: vpdpwusd -512(,%rbp,2), %xmm13, %xmm12
# INTEL: vpdpwusd xmm12, xmm13, xmmword ptr [2*rbp - 512]
0xc4,0x62,0x11,0xd2,0x24,0x6d,0x00,0xfe,0xff,0xff
# ATT: vpdpwusd 2032(%rcx), %xmm13, %xmm12
# INTEL: vpdpwusd xmm12, xmm13, xmmword ptr [rcx + 2032]
0xc4,0x62,0x11,0xd2,0xa1,0xf0,0x07,0x00,0x00
# ATT: vpdpwusd -2048(%rdx), %xmm13, %xmm12
# INTEL: vpdpwusd xmm12, xmm13, xmmword ptr [rdx - 2048]
0xc4,0x62,0x11,0xd2,0xa2,0x00,0xf8,0xff,0xff
# ATT: vpdpwusds %ymm4, %ymm13, %ymm12
# INTEL: vpdpwusds ymm12, ymm13, ymm4
0xc4,0x62,0x15,0xd3,0xe4
# ATT: vpdpwusds %xmm4, %xmm13, %xmm12
# INTEL: vpdpwusds xmm12, xmm13, xmm4
0xc4,0x62,0x11,0xd3,0xe4
# ATT: vpdpwusds 268435456(%rbp,%r14,8), %ymm13, %ymm12
# INTEL: vpdpwusds ymm12, ymm13, ymmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x15,0xd3,0xa4,0xf5,0x00,0x00,0x00,0x10
# ATT: vpdpwusds 291(%r8,%rax,4), %ymm13, %ymm12
# INTEL: vpdpwusds ymm12, ymm13, ymmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x15,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: vpdpwusds (%rip), %ymm13, %ymm12
# INTEL: vpdpwusds ymm12, ymm13, ymmword ptr [rip]
0xc4,0x62,0x15,0xd3,0x25,0x00,0x00,0x00,0x00
# ATT: vpdpwusds -1024(,%rbp,2), %ymm13, %ymm12
# INTEL: vpdpwusds ymm12, ymm13, ymmword ptr [2*rbp - 1024]
0xc4,0x62,0x15,0xd3,0x24,0x6d,0x00,0xfc,0xff,0xff
# ATT: vpdpwusds 4064(%rcx), %ymm13, %ymm12
# INTEL: vpdpwusds ymm12, ymm13, ymmword ptr [rcx + 4064]
0xc4,0x62,0x15,0xd3,0xa1,0xe0,0x0f,0x00,0x00
# ATT: vpdpwusds -4096(%rdx), %ymm13, %ymm12
# INTEL: vpdpwusds ymm12, ymm13, ymmword ptr [rdx - 4096]
0xc4,0x62,0x15,0xd3,0xa2,0x00,0xf0,0xff,0xff
# ATT: vpdpwusds 268435456(%rbp,%r14,8), %xmm13, %xmm12
# INTEL: vpdpwusds xmm12, xmm13, xmmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x11,0xd3,0xa4,0xf5,0x00,0x00,0x00,0x10
# ATT: vpdpwusds 291(%r8,%rax,4), %xmm13, %xmm12
# INTEL: vpdpwusds xmm12, xmm13, xmmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x11,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: vpdpwusds (%rip), %xmm13, %xmm12
# INTEL: vpdpwusds xmm12, xmm13, xmmword ptr [rip]
0xc4,0x62,0x11,0xd3,0x25,0x00,0x00,0x00,0x00
# ATT: vpdpwusds -512(,%rbp,2), %xmm13, %xmm12
# INTEL: vpdpwusds xmm12, xmm13, xmmword ptr [2*rbp - 512]
0xc4,0x62,0x11,0xd3,0x24,0x6d,0x00,0xfe,0xff,0xff
# ATT: vpdpwusds 2032(%rcx), %xmm13, %xmm12
# INTEL: vpdpwusds xmm12, xmm13, xmmword ptr [rcx + 2032]
0xc4,0x62,0x11,0xd3,0xa1,0xf0,0x07,0x00,0x00
# ATT: vpdpwusds -2048(%rdx), %xmm13, %xmm12
# INTEL: vpdpwusds xmm12, xmm13, xmmword ptr [rdx - 2048]
0xc4,0x62,0x11,0xd3,0xa2,0x00,0xf8,0xff,0xff
# ATT: vpdpwuud %ymm4, %ymm13, %ymm12
# INTEL: vpdpwuud ymm12, ymm13, ymm4
0xc4,0x62,0x14,0xd2,0xe4
# ATT: vpdpwuud %xmm4, %xmm13, %xmm12
# INTEL: vpdpwuud xmm12, xmm13, xmm4
0xc4,0x62,0x10,0xd2,0xe4
# ATT: vpdpwuud 268435456(%rbp,%r14,8), %ymm13, %ymm12
# INTEL: vpdpwuud ymm12, ymm13, ymmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x14,0xd2,0xa4,0xf5,0x00,0x00,0x00,0x10
# ATT: vpdpwuud 291(%r8,%rax,4), %ymm13, %ymm12
# INTEL: vpdpwuud ymm12, ymm13, ymmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x14,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: vpdpwuud (%rip), %ymm13, %ymm12
# INTEL: vpdpwuud ymm12, ymm13, ymmword ptr [rip]
0xc4,0x62,0x14,0xd2,0x25,0x00,0x00,0x00,0x00
# ATT: vpdpwuud -1024(,%rbp,2), %ymm13, %ymm12
# INTEL: vpdpwuud ymm12, ymm13, ymmword ptr [2*rbp - 1024]
0xc4,0x62,0x14,0xd2,0x24,0x6d,0x00,0xfc,0xff,0xff
# ATT: vpdpwuud 4064(%rcx), %ymm13, %ymm12
# INTEL: vpdpwuud ymm12, ymm13, ymmword ptr [rcx + 4064]
0xc4,0x62,0x14,0xd2,0xa1,0xe0,0x0f,0x00,0x00
# ATT: vpdpwuud -4096(%rdx), %ymm13, %ymm12
# INTEL: vpdpwuud ymm12, ymm13, ymmword ptr [rdx - 4096]
0xc4,0x62,0x14,0xd2,0xa2,0x00,0xf0,0xff,0xff
# ATT: vpdpwuud 268435456(%rbp,%r14,8), %xmm13, %xmm12
# INTEL: vpdpwuud xmm12, xmm13, xmmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x10,0xd2,0xa4,0xf5,0x00,0x00,0x00,0x10
# ATT: vpdpwuud 291(%r8,%rax,4), %xmm13, %xmm12
# INTEL: vpdpwuud xmm12, xmm13, xmmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x10,0xd2,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: vpdpwuud (%rip), %xmm13, %xmm12
# INTEL: vpdpwuud xmm12, xmm13, xmmword ptr [rip]
0xc4,0x62,0x10,0xd2,0x25,0x00,0x00,0x00,0x00
# ATT: vpdpwuud -512(,%rbp,2), %xmm13, %xmm12
# INTEL: vpdpwuud xmm12, xmm13, xmmword ptr [2*rbp - 512]
0xc4,0x62,0x10,0xd2,0x24,0x6d,0x00,0xfe,0xff,0xff
# ATT: vpdpwuud 2032(%rcx), %xmm13, %xmm12
# INTEL: vpdpwuud xmm12, xmm13, xmmword ptr [rcx + 2032]
0xc4,0x62,0x10,0xd2,0xa1,0xf0,0x07,0x00,0x00
# ATT: vpdpwuud -2048(%rdx), %xmm13, %xmm12
# INTEL: vpdpwuud xmm12, xmm13, xmmword ptr [rdx - 2048]
0xc4,0x62,0x10,0xd2,0xa2,0x00,0xf8,0xff,0xff
# ATT: vpdpwuuds %ymm4, %ymm13, %ymm12
# INTEL: vpdpwuuds ymm12, ymm13, ymm4
0xc4,0x62,0x14,0xd3,0xe4
# ATT: vpdpwuuds %xmm4, %xmm13, %xmm12
# INTEL: vpdpwuuds xmm12, xmm13, xmm4
0xc4,0x62,0x10,0xd3,0xe4
# ATT: vpdpwuuds 268435456(%rbp,%r14,8), %ymm13, %ymm12
# INTEL: vpdpwuuds ymm12, ymm13, ymmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x14,0xd3,0xa4,0xf5,0x00,0x00,0x00,0x10
# ATT: vpdpwuuds 291(%r8,%rax,4), %ymm13, %ymm12
# INTEL: vpdpwuuds ymm12, ymm13, ymmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x14,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: vpdpwuuds (%rip), %ymm13, %ymm12
# INTEL: vpdpwuuds ymm12, ymm13, ymmword ptr [rip]
0xc4,0x62,0x14,0xd3,0x25,0x00,0x00,0x00,0x00
# ATT: vpdpwuuds -1024(,%rbp,2), %ymm13, %ymm12
# INTEL: vpdpwuuds ymm12, ymm13, ymmword ptr [2*rbp - 1024]
0xc4,0x62,0x14,0xd3,0x24,0x6d,0x00,0xfc,0xff,0xff
# ATT: vpdpwuuds 4064(%rcx), %ymm13, %ymm12
# INTEL: vpdpwuuds ymm12, ymm13, ymmword ptr [rcx + 4064]
0xc4,0x62,0x14,0xd3,0xa1,0xe0,0x0f,0x00,0x00
# ATT: vpdpwuuds -4096(%rdx), %ymm13, %ymm12
# INTEL: vpdpwuuds ymm12, ymm13, ymmword ptr [rdx - 4096]
0xc4,0x62,0x14,0xd3,0xa2,0x00,0xf0,0xff,0xff
# ATT: vpdpwuuds 268435456(%rbp,%r14,8), %xmm13, %xmm12
# INTEL: vpdpwuuds xmm12, xmm13, xmmword ptr [rbp + 8*r14 + 268435456]
0xc4,0x22,0x10,0xd3,0xa4,0xf5,0x00,0x00,0x00,0x10
# ATT: vpdpwuuds 291(%r8,%rax,4), %xmm13, %xmm12
# INTEL: vpdpwuuds xmm12, xmm13, xmmword ptr [r8 + 4*rax + 291]
0xc4,0x42,0x10,0xd3,0xa4,0x80,0x23,0x01,0x00,0x00
# ATT: vpdpwuuds (%rip), %xmm13, %xmm12
# INTEL: vpdpwuuds xmm12, xmm13, xmmword ptr [rip]
0xc4,0x62,0x10,0xd3,0x25,0x00,0x00,0x00,0x00
# ATT: vpdpwuuds -512(,%rbp,2), %xmm13, %xmm12
# INTEL: vpdpwuuds xmm12, xmm13, xmmword ptr [2*rbp - 512]
0xc4,0x62,0x10,0xd3,0x24,0x6d,0x00,0xfe,0xff,0xff
# ATT: vpdpwuuds 2032(%rcx), %xmm13, %xmm12
# INTEL: vpdpwuuds xmm12, xmm13, xmmword ptr [rcx + 2032]
0xc4,0x62,0x10,0xd3,0xa1,0xf0,0x07,0x00,0x00
# ATT: vpdpwuuds -2048(%rdx), %xmm13, %xmm12
# INTEL: vpdpwuuds xmm12, xmm13, xmmword ptr [rdx - 2048]
0xc4,0x62,0x10,0xd3,0xa2,0x00,0xf8,0xff,0xff