• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2# RUN: llvm-mca -mtriple=i686-unknown-unknown -mcpu=slm -instruction-tables < %s | FileCheck %s
3
4aaa
5
6aad
7aad $7
8
9aam
10aam $7
11
12aas
13
14bound %bx, (%eax)
15bound %ebx, (%eax)
16
17daa
18
19das
20
21into
22
23leave
24
25salc
26
27# CHECK:      Instruction Info:
28# CHECK-NEXT: [1]: #uOps
29# CHECK-NEXT: [2]: Latency
30# CHECK-NEXT: [3]: RThroughput
31# CHECK-NEXT: [4]: MayLoad
32# CHECK-NEXT: [5]: MayStore
33# CHECK-NEXT: [6]: HasSideEffects (U)
34
35# CHECK:      [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
36# CHECK-NEXT:  1      100   1.00                        aaa
37# CHECK-NEXT:  1      100   1.00                        aad
38# CHECK-NEXT:  1      100   1.00                        aad	$7
39# CHECK-NEXT:  1      100   1.00                        aam
40# CHECK-NEXT:  1      100   1.00                        aam	$7
41# CHECK-NEXT:  1      100   1.00                        aas
42# CHECK-NEXT:  1      100   1.00                  U     bound	%bx, (%eax)
43# CHECK-NEXT:  1      100   1.00                  U     bound	%ebx, (%eax)
44# CHECK-NEXT:  1      100   1.00                        daa
45# CHECK-NEXT:  1      100   1.00                        das
46# CHECK-NEXT:  1      100   1.00                  U     into
47# CHECK-NEXT:  1      1     0.50    *                   leave
48# CHECK-NEXT:  1      1     0.50                  U     salc
49
50# CHECK:      Resources:
51# CHECK-NEXT: [0]   - SLMDivider
52# CHECK-NEXT: [1]   - SLMFPDivider
53# CHECK-NEXT: [2]   - SLMFPMultiplier
54# CHECK-NEXT: [3]   - SLM_FPC_RSV0
55# CHECK-NEXT: [4]   - SLM_FPC_RSV1
56# CHECK-NEXT: [5]   - SLM_IEC_RSV0
57# CHECK-NEXT: [6]   - SLM_IEC_RSV1
58# CHECK-NEXT: [7]   - SLM_MEC_RSV
59
60# CHECK:      Resource pressure per iteration:
61# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]
62# CHECK-NEXT:  -      -      -     11.00   -     1.00   1.00    -
63
64# CHECK:      Resource pressure by instruction:
65# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]    Instructions:
66# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     aaa
67# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     aad
68# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     aad	$7
69# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     aam
70# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     aam	$7
71# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     aas
72# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     bound	%bx, (%eax)
73# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     bound	%ebx, (%eax)
74# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     daa
75# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     das
76# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     into
77# CHECK-NEXT:  -      -      -      -      -     0.50   0.50    -     leave
78# CHECK-NEXT:  -      -      -      -      -     0.50   0.50    -     salc
79