1// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
2
3// CHECK: vpclmulqdq  $17, %xmm12, %xmm10, %xmm11
4// CHECK: encoding: [0xc4,0x43,0x29,0x44,0xdc,0x11]
5          vpclmulhqhqdq %xmm12, %xmm10, %xmm11
6
7// CHECK: vpclmulqdq  $17, (%rax), %xmm10, %xmm13
8// CHECK: encoding: [0xc4,0x63,0x29,0x44,0x28,0x11]
9          vpclmulhqhqdq (%rax), %xmm10, %xmm13
10
11// CHECK: vpclmulqdq  $1, %xmm12, %xmm10, %xmm11
12// CHECK: encoding: [0xc4,0x43,0x29,0x44,0xdc,0x01]
13          vpclmulhqlqdq %xmm12, %xmm10, %xmm11
14
15// CHECK: vpclmulqdq  $1, (%rax), %xmm10, %xmm13
16// CHECK: encoding: [0xc4,0x63,0x29,0x44,0x28,0x01]
17          vpclmulhqlqdq (%rax), %xmm10, %xmm13
18
19// CHECK: vpclmulqdq  $16, %xmm12, %xmm10, %xmm11
20// CHECK: encoding: [0xc4,0x43,0x29,0x44,0xdc,0x10]
21          vpclmullqhqdq %xmm12, %xmm10, %xmm11
22
23// CHECK: vpclmulqdq  $16, (%rax), %xmm10, %xmm13
24// CHECK: encoding: [0xc4,0x63,0x29,0x44,0x28,0x10]
25          vpclmullqhqdq (%rax), %xmm10, %xmm13
26
27// CHECK: vpclmulqdq  $0, %xmm12, %xmm10, %xmm11
28// CHECK: encoding: [0xc4,0x43,0x29,0x44,0xdc,0x00]
29          vpclmullqlqdq %xmm12, %xmm10, %xmm11
30
31// CHECK: vpclmulqdq  $0, (%rax), %xmm10, %xmm13
32// CHECK: encoding: [0xc4,0x63,0x29,0x44,0x28,0x00]
33          vpclmullqlqdq (%rax), %xmm10, %xmm13
34
35// CHECK: vpclmulqdq  $17, %xmm12, %xmm10, %xmm11
36// CHECK: encoding: [0xc4,0x43,0x29,0x44,0xdc,0x11]
37          vpclmulqdq  $17, %xmm12, %xmm10, %xmm11
38
39// CHECK: vpclmulqdq  $17, (%rax), %xmm10, %xmm13
40// CHECK: encoding: [0xc4,0x63,0x29,0x44,0x28,0x11]
41          vpclmulqdq  $17, (%rax), %xmm10, %xmm13
42
43