Teach mergefunc that intptr_t is the same width as a pointer. We still can't
[llvm.git] / test / MC / X86 / 3DNow.s
blob4dc68aecf4fa4a059e1184c657eeb021518fe508
1 // RUN: llvm-mc -triple i386-unknown-unknown --show-encoding %s | FileCheck %s
3 // PR8283
5 // CHECK: pavgusb %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xbf]
6 pavgusb %mm2, %mm1
8 // CHECK: pavgusb 9(%esi,%edx), %mm3 # encoding: [0x0f,0x0f,0x5c,0x16,0x09,0xbf]
9 pavgusb 9(%esi,%edx), %mm3
12 // CHECK: pf2id %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x1d]
13 pf2id %mm2, %mm1
15 // CHECK: pf2id 9(%esi,%edx), %mm3 # encoding: [0x0f,0x0f,0x5c,0x16,0x09,0x1d]
16 pf2id 9(%esi,%edx), %mm3
18 // CHECK: pfacc %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xae]
19 pfacc %mm2, %mm1
21 // CHECK: pfadd %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x9e]
22 pfadd %mm2, %mm1
24 // CHECK: pfcmpeq %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xb0]
25 pfcmpeq %mm2, %mm1
27 // CHECK: pfcmpge %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x90]
28 pfcmpge %mm2, %mm1
30 // CHECK: pfcmpgt %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xa0]
31 pfcmpgt %mm2, %mm1
33 // CHECK: pfmax %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xa4]
34 pfmax %mm2, %mm1
36 // CHECK: pfmin %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x94]
37 pfmin %mm2, %mm1
39 // CHECK: pfmul %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xb4]
40 pfmul %mm2, %mm1
42 // CHECK: pfrcp %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x96]
43 pfrcp %mm2, %mm1
45 // CHECK: pfrcpit1 %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xa6]
46 pfrcpit1 %mm2, %mm1
48 // CHECK: pfrcpit2 %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xb6]
49 pfrcpit2 %mm2, %mm1
51 // CHECK: pfrsqit1 %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xa7]
52 pfrsqit1 %mm2, %mm1
54 // CHECK: pfrsqrt %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x97]
55 pfrsqrt %mm2, %mm1
57 // CHECK: pfsub %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x9a]
58 pfsub %mm2, %mm1
60 // CHECK: pfsubr %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xaa]
61 pfsubr %mm2, %mm1
63 // CHECK: pi2fd %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x0d]
64 pi2fd %mm2, %mm1
66 // CHECK: pmulhrw %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xb7]
67 pmulhrw %mm2, %mm1
70 // CHECK: femms # encoding: [0x0f,0x0e]
71 femms
73 // CHECK: prefetch (%rax) # encoding: [0x0f,0x0d,0x00]
74 // CHECK: prefetchw (%rax) # encoding: [0x0f,0x0d,0x08]
75 prefetch (%rax)
76 prefetchw (%rax)
79 // CHECK: pf2iw %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x1c]
80 pf2iw %mm2, %mm1
82 // CHECK: pi2fw %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x0c]
83 pi2fw %mm2, %mm1
85 // CHECK: pfnacc %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x8a]
86 pfnacc %mm2, %mm1
88 // CHECK: pfpnacc %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x8e]
89 pfpnacc %mm2, %mm1
91 // CHECK: pswapd %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xbb]
92 pswapd %mm2, %mm1