[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-mca / X86 / Generic / resources-fsgsbase.s
blob7b0642214bae6defa1e8701d47658abc34e89a83
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -instruction-tables < %s | FileCheck %s
4 rdfsbase %eax
5 rdfsbase %rax
7 rdgsbase %eax
8 rdgsbase %rax
10 wrfsbase %edi
11 wrfsbase %rdi
13 wrgsbase %edi
14 wrgsbase %rdi
16 # CHECK: Instruction Info:
17 # CHECK-NEXT: [1]: #uOps
18 # CHECK-NEXT: [2]: Latency
19 # CHECK-NEXT: [3]: RThroughput
20 # CHECK-NEXT: [4]: MayLoad
21 # CHECK-NEXT: [5]: MayStore
22 # CHECK-NEXT: [6]: HasSideEffects (U)
24 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
25 # CHECK-NEXT: 1 100 0.33 * * U rdfsbasel %eax
26 # CHECK-NEXT: 1 100 0.33 * * U rdfsbaseq %rax
27 # CHECK-NEXT: 1 100 0.33 * * U rdgsbasel %eax
28 # CHECK-NEXT: 1 100 0.33 * * U rdgsbaseq %rax
29 # CHECK-NEXT: 1 100 0.33 * * U wrfsbasel %edi
30 # CHECK-NEXT: 1 100 0.33 * * U wrfsbaseq %rdi
31 # CHECK-NEXT: 1 100 0.33 * * U wrgsbasel %edi
32 # CHECK-NEXT: 1 100 0.33 * * U wrgsbaseq %rdi
34 # CHECK: Resources:
35 # CHECK-NEXT: [0] - SBDivider
36 # CHECK-NEXT: [1] - SBFPDivider
37 # CHECK-NEXT: [2] - SBPort0
38 # CHECK-NEXT: [3] - SBPort1
39 # CHECK-NEXT: [4] - SBPort4
40 # CHECK-NEXT: [5] - SBPort5
41 # CHECK-NEXT: [6.0] - SBPort23
42 # CHECK-NEXT: [6.1] - SBPort23
44 # CHECK: Resource pressure per iteration:
45 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
46 # CHECK-NEXT: - - 2.67 2.67 - 2.67 - -
48 # CHECK: Resource pressure by instruction:
49 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
50 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - rdfsbasel %eax
51 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - rdfsbaseq %rax
52 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - rdgsbasel %eax
53 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - rdgsbaseq %rax
54 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - wrfsbasel %edi
55 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - wrfsbaseq %rdi
56 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - wrgsbasel %edi
57 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - wrgsbaseq %rdi