1// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
2
3// PR8283
4
5// CHECK: pavgusb %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0xbf]
6pavgusb	%mm2, %mm1
7
8// CHECK: pavgusb 9(%esi,%edx), %mm3 # encoding: [0x67,0x0f,0x0f,0x5c,0x16,0x09,0xbf]
9pavgusb	9(%esi,%edx), %mm3
10
11
12// CHECK: pf2id %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0x1d]
13pf2id	%mm2, %mm1
14
15// CHECK: pf2id 9(%esi,%edx), %mm3 # encoding: [0x67,0x0f,0x0f,0x5c,0x16,0x09,0x1d]
16pf2id	9(%esi,%edx), %mm3
17
18// CHECK: pfacc %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0xae]
19pfacc	%mm2, %mm1
20
21// CHECK: pfadd %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0x9e]
22pfadd	%mm2, %mm1
23
24// CHECK: pfcmpeq %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0xb0]
25pfcmpeq	%mm2, %mm1
26
27// CHECK: pfcmpge %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0x90]
28pfcmpge	%mm2, %mm1
29
30// CHECK: pfcmpgt %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0xa0]
31pfcmpgt	%mm2, %mm1
32
33// CHECK: pfmax %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0xa4]
34pfmax	%mm2, %mm1
35
36// CHECK: pfmin %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0x94]
37pfmin	%mm2, %mm1
38
39// CHECK: pfmul %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0xb4]
40pfmul	%mm2, %mm1
41
42// CHECK: pfrcp %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0x96]
43pfrcp	%mm2, %mm1
44
45// CHECK: pfrcpit1 %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0xa6]
46pfrcpit1	%mm2, %mm1
47
48// CHECK: pfrcpit2 %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0xb6]
49pfrcpit2	%mm2, %mm1
50
51// CHECK: pfrsqit1 %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0xa7]
52pfrsqit1	%mm2, %mm1
53
54// CHECK: pfrsqrt %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0x97]
55pfrsqrt	%mm2, %mm1
56
57// CHECK: pfsub %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0x9a]
58pfsub	%mm2, %mm1
59
60// CHECK: pfsubr %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0xaa]
61pfsubr	%mm2, %mm1
62
63// CHECK: pi2fd %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0x0d]
64pi2fd	%mm2, %mm1
65
66// CHECK: pmulhrw %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0xb7]
67pmulhrw	%mm2, %mm1
68
69
70// CHECK: femms # encoding: [0x0f,0x0e]
71femms
72
73// CHECK: prefetch (%rax)   # encoding: [0x0f,0x0d,0x00]
74// CHECK: prefetchw (%rax)  # encoding: [0x0f,0x0d,0x08]
75prefetch (%rax)
76prefetchw (%rax)
77
78
79// CHECK: pf2iw %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0x1c]
80pf2iw %mm2, %mm1
81
82// CHECK: pi2fw %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0x0c]
83pi2fw %mm2, %mm1
84
85// CHECK: pfnacc %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0x8a]
86pfnacc %mm2, %mm1
87
88// CHECK: pfpnacc %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0x8e]
89pfpnacc %mm2, %mm1
90
91// CHECK: pswapd %mm2, %mm1  # encoding: [0x0f,0x0f,0xca,0xbb]
92pswapd %mm2, %mm1
93