llvm.org GIT mirror llvm / 6d6fe22
[llvm-mca][X86] Add missing SSE4A test file git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332270 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 1 year, 5 months ago
1 changed file(s) with 55 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
1 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver1 -instruction-tables < %s | FileCheck %s
2
3 extrq %xmm0, %xmm2
4 extrq $22, $2, %xmm2
5
6 insertq %xmm0, %xmm2
7 insertq $22, $22, %xmm0, %xmm2
8
9 movntsd %xmm0, (%rax)
10 movntss %xmm0, (%rax)
11
12 # CHECK: Instruction Info:
13 # CHECK-NEXT: [1]: #uOps
14 # CHECK-NEXT: [2]: Latency
15 # CHECK-NEXT: [3]: RThroughput
16 # CHECK-NEXT: [4]: MayLoad
17 # CHECK-NEXT: [5]: MayStore
18 # CHECK-NEXT: [6]: HasSideEffects
19
20 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
21 # CHECK-NEXT: 1 2 1.00 extrq %xmm0, %xmm2
22 # CHECK-NEXT: 1 2 1.00 extrq $22, $2, %xmm2
23 # CHECK-NEXT: 1 4 1.00 insertq %xmm0, %xmm2
24 # CHECK-NEXT: 1 4 1.00 insertq $22, $22, %xmm0, %xmm2
25 # CHECK-NEXT: 1 8 1.00 * movntsd %xmm0, (%rax)
26 # CHECK-NEXT: 1 8 1.00 * movntss %xmm0, (%rax)
27
28 # CHECK: Resources:
29 # CHECK-NEXT: [0] - ZnAGU0
30 # CHECK-NEXT: [1] - ZnAGU1
31 # CHECK-NEXT: [2] - ZnALU0
32 # CHECK-NEXT: [3] - ZnALU1
33 # CHECK-NEXT: [4] - ZnALU2
34 # CHECK-NEXT: [5] - ZnALU3
35 # CHECK-NEXT: [6] - ZnDivider
36 # CHECK-NEXT: [7] - ZnFPU0
37 # CHECK-NEXT: [8] - ZnFPU1
38 # CHECK-NEXT: [9] - ZnFPU2
39 # CHECK-NEXT: [10] - ZnFPU3
40 # CHECK-NEXT: [11] - ZnMultiplier
41
42 # CHECK: Resource pressure per iteration:
43 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
44 # CHECK-NEXT: 1.00 1.00 - - - - - 1.00 3.00 5.00 1.00 -
45
46 # CHECK: Resource pressure by instruction:
47 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] Instructions:
48 # CHECK-NEXT: - - - - - - - - 0.50 1.50 - - extrq %xmm0, %xmm2
49 # CHECK-NEXT: - - - - - - - - 0.50 1.50 - - extrq $22, $2, %xmm2
50 # CHECK-NEXT: - - - - - - - 0.50 1.00 - 0.50 - insertq %xmm0, %xmm2
51 # CHECK-NEXT: - - - - - - - 0.50 1.00 - 0.50 - insertq $22, $22, %xmm0, %xmm2
52 # CHECK-NEXT: 0.50 0.50 - - - - - - - 1.00 - - movntsd %xmm0, (%rax)
53 # CHECK-NEXT: 0.50 0.50 - - - - - - - 1.00 - - movntss %xmm0, (%rax)
54