[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / X86 / 3DNow.s
blobe66e39b547ae7d3dc881a8b22351af9cfcd1aedb
1 // RUN: llvm-mc -triple x86_64-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: [0x67,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: [0x67,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 // CHECK: prefetchwt1 (%rax) # encoding: [0x0f,0x0d,0x10]
76 prefetch (%rax)
77 prefetchw (%rax)
78 prefetchwt1 (%rax)
81 // CHECK: pf2iw %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x1c]
82 pf2iw %mm2, %mm1
84 // CHECK: pi2fw %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x0c]
85 pi2fw %mm2, %mm1
87 // CHECK: pfnacc %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x8a]
88 pfnacc %mm2, %mm1
90 // CHECK: pfpnacc %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x8e]
91 pfpnacc %mm2, %mm1
93 // CHECK: pswapd %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xbb]
94 pswapd %mm2, %mm1