• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver1 -instruction-tables < %s | FileCheck %s
3
4adcx        %ebx, %ecx
5adcx        (%rbx), %ecx
6adcx        %rbx, %rcx
7adcx        (%rbx), %rcx
8
9adox        %ebx, %ecx
10adox        (%rbx), %ecx
11adox        %rbx, %rcx
12adox        (%rbx), %rcx
13
14# CHECK:      Instruction Info:
15# CHECK-NEXT: [1]: #uOps
16# CHECK-NEXT: [2]: Latency
17# CHECK-NEXT: [3]: RThroughput
18# CHECK-NEXT: [4]: MayLoad
19# CHECK-NEXT: [5]: MayStore
20# CHECK-NEXT: [6]: HasSideEffects (U)
21
22# CHECK:      [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
23# CHECK-NEXT:  1      1     0.25                        adcxl	%ebx, %ecx
24# CHECK-NEXT:  2      5     0.50    *                   adcxl	(%rbx), %ecx
25# CHECK-NEXT:  1      1     0.25                        adcxq	%rbx, %rcx
26# CHECK-NEXT:  2      5     0.50    *                   adcxq	(%rbx), %rcx
27# CHECK-NEXT:  1      1     0.25                        adoxl	%ebx, %ecx
28# CHECK-NEXT:  2      5     0.50    *                   adoxl	(%rbx), %ecx
29# CHECK-NEXT:  1      1     0.25                        adoxq	%rbx, %rcx
30# CHECK-NEXT:  2      5     0.50    *                   adoxq	(%rbx), %rcx
31
32# CHECK:      Resources:
33# CHECK-NEXT: [0]   - ZnAGU0
34# CHECK-NEXT: [1]   - ZnAGU1
35# CHECK-NEXT: [2]   - ZnALU0
36# CHECK-NEXT: [3]   - ZnALU1
37# CHECK-NEXT: [4]   - ZnALU2
38# CHECK-NEXT: [5]   - ZnALU3
39# CHECK-NEXT: [6]   - ZnDivider
40# CHECK-NEXT: [7]   - ZnFPU0
41# CHECK-NEXT: [8]   - ZnFPU1
42# CHECK-NEXT: [9]   - ZnFPU2
43# CHECK-NEXT: [10]  - ZnFPU3
44# CHECK-NEXT: [11]  - ZnMultiplier
45
46# CHECK:      Resource pressure per iteration:
47# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]    [8]    [9]    [10]   [11]
48# CHECK-NEXT: 2.00   2.00   2.00   2.00   2.00   2.00    -      -      -      -      -      -
49
50# CHECK:      Resource pressure by instruction:
51# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]    [8]    [9]    [10]   [11]   Instructions:
52# CHECK-NEXT:  -      -     0.25   0.25   0.25   0.25    -      -      -      -      -      -     adcxl	%ebx, %ecx
53# CHECK-NEXT: 0.50   0.50   0.25   0.25   0.25   0.25    -      -      -      -      -      -     adcxl	(%rbx), %ecx
54# CHECK-NEXT:  -      -     0.25   0.25   0.25   0.25    -      -      -      -      -      -     adcxq	%rbx, %rcx
55# CHECK-NEXT: 0.50   0.50   0.25   0.25   0.25   0.25    -      -      -      -      -      -     adcxq	(%rbx), %rcx
56# CHECK-NEXT:  -      -     0.25   0.25   0.25   0.25    -      -      -      -      -      -     adoxl	%ebx, %ecx
57# CHECK-NEXT: 0.50   0.50   0.25   0.25   0.25   0.25    -      -      -      -      -      -     adoxl	(%rbx), %ecx
58# CHECK-NEXT:  -      -     0.25   0.25   0.25   0.25    -      -      -      -      -      -     adoxq	%rbx, %rcx
59# CHECK-NEXT: 0.50   0.50   0.25   0.25   0.25   0.25    -      -      -      -      -      -     adoxq	(%rbx), %rcx
60