[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-mca / X86 / Atom / resources-sse3.s
blobc0b4b3048d270b1fc9dea5dcfb898ddd207bd29e
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=atom -instruction-tables < %s | FileCheck %s
4 addsubpd %xmm0, %xmm2
5 addsubpd (%rax), %xmm2
7 addsubps %xmm0, %xmm2
8 addsubps (%rax), %xmm2
10 haddpd %xmm0, %xmm2
11 haddpd (%rax), %xmm2
13 haddps %xmm0, %xmm2
14 haddps (%rax), %xmm2
16 hsubpd %xmm0, %xmm2
17 hsubpd (%rax), %xmm2
19 hsubps %xmm0, %xmm2
20 hsubps (%rax), %xmm2
22 lddqu (%rax), %xmm2
24 monitor
26 movddup %xmm0, %xmm2
27 movddup (%rax), %xmm2
29 movshdup %xmm0, %xmm2
30 movshdup (%rax), %xmm2
32 movsldup %xmm0, %xmm2
33 movsldup (%rax), %xmm2
35 mwait
37 # CHECK: Instruction Info:
38 # CHECK-NEXT: [1]: #uOps
39 # CHECK-NEXT: [2]: Latency
40 # CHECK-NEXT: [3]: RThroughput
41 # CHECK-NEXT: [4]: MayLoad
42 # CHECK-NEXT: [5]: MayStore
43 # CHECK-NEXT: [6]: HasSideEffects (U)
45 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
46 # CHECK-NEXT: 1 6 3.00 addsubpd %xmm0, %xmm2
47 # CHECK-NEXT: 1 7 3.50 * addsubpd (%rax), %xmm2
48 # CHECK-NEXT: 1 5 5.00 addsubps %xmm0, %xmm2
49 # CHECK-NEXT: 1 5 5.00 * addsubps (%rax), %xmm2
50 # CHECK-NEXT: 1 8 4.00 haddpd %xmm0, %xmm2
51 # CHECK-NEXT: 1 9 4.50 * haddpd (%rax), %xmm2
52 # CHECK-NEXT: 1 8 4.00 haddps %xmm0, %xmm2
53 # CHECK-NEXT: 1 9 4.50 * haddps (%rax), %xmm2
54 # CHECK-NEXT: 1 8 4.00 hsubpd %xmm0, %xmm2
55 # CHECK-NEXT: 1 9 4.50 * hsubpd (%rax), %xmm2
56 # CHECK-NEXT: 1 8 4.00 hsubps %xmm0, %xmm2
57 # CHECK-NEXT: 1 9 4.50 * hsubps (%rax), %xmm2
58 # CHECK-NEXT: 1 3 1.50 * lddqu (%rax), %xmm2
59 # CHECK-NEXT: 1 45 22.50 U monitor
60 # CHECK-NEXT: 1 1 1.00 movddup %xmm0, %xmm2
61 # CHECK-NEXT: 1 1 1.00 * movddup (%rax), %xmm2
62 # CHECK-NEXT: 1 1 1.00 movshdup %xmm0, %xmm2
63 # CHECK-NEXT: 1 1 1.00 * movshdup (%rax), %xmm2
64 # CHECK-NEXT: 1 1 1.00 movsldup %xmm0, %xmm2
65 # CHECK-NEXT: 1 1 1.00 * movsldup (%rax), %xmm2
66 # CHECK-NEXT: 1 46 23.00 * * U mwait
68 # CHECK: Resources:
69 # CHECK-NEXT: [0] - AtomPort0
70 # CHECK-NEXT: [1] - AtomPort1
72 # CHECK: Resource pressure per iteration:
73 # CHECK-NEXT: [0] [1]
74 # CHECK-NEXT: 103.50 87.50
76 # CHECK: Resource pressure by instruction:
77 # CHECK-NEXT: [0] [1] Instructions:
78 # CHECK-NEXT: 3.00 3.00 addsubpd %xmm0, %xmm2
79 # CHECK-NEXT: 3.50 3.50 addsubpd (%rax), %xmm2
80 # CHECK-NEXT: 5.00 - addsubps %xmm0, %xmm2
81 # CHECK-NEXT: 5.00 - addsubps (%rax), %xmm2
82 # CHECK-NEXT: 4.00 4.00 haddpd %xmm0, %xmm2
83 # CHECK-NEXT: 4.50 4.50 haddpd (%rax), %xmm2
84 # CHECK-NEXT: 4.00 4.00 haddps %xmm0, %xmm2
85 # CHECK-NEXT: 4.50 4.50 haddps (%rax), %xmm2
86 # CHECK-NEXT: 4.00 4.00 hsubpd %xmm0, %xmm2
87 # CHECK-NEXT: 4.50 4.50 hsubpd (%rax), %xmm2
88 # CHECK-NEXT: 4.00 4.00 hsubps %xmm0, %xmm2
89 # CHECK-NEXT: 4.50 4.50 hsubps (%rax), %xmm2
90 # CHECK-NEXT: 1.50 1.50 lddqu (%rax), %xmm2
91 # CHECK-NEXT: 22.50 22.50 monitor
92 # CHECK-NEXT: 1.00 - movddup %xmm0, %xmm2
93 # CHECK-NEXT: 1.00 - movddup (%rax), %xmm2
94 # CHECK-NEXT: 1.00 - movshdup %xmm0, %xmm2
95 # CHECK-NEXT: 1.00 - movshdup (%rax), %xmm2
96 # CHECK-NEXT: 1.00 - movsldup %xmm0, %xmm2
97 # CHECK-NEXT: 1.00 - movsldup (%rax), %xmm2
98 # CHECK-NEXT: 23.00 23.00 mwait