Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-mca / X86 / register-file-statistics.s
blobfd90a6ec59977cbeddddba361dd6b6c6f98369e0
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
3 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=BARCELONA %s
4 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL,BDVER2 %s
5 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL,BTVER2 %s
6 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=znver1 -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL,ZNVER1 %s
7 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=znver2 -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL,ZNVER2 %s
8 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=znver3 -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL,ZNVER3 %s
9 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=znver4 -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL,ZNVER4 %s
10 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=sandybridge -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
11 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=ivybridge -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
12 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=haswell -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
13 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=broadwell -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
14 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=knl -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
15 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=skylake -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
16 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=skylake-avx512 -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
17 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=icelake-client -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
18 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=icelake-server -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
19 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=rocketlake -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
20 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=tigerlake -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
21 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=slm -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
23 xor %eax, %ebx
25 # ALL: Register File statistics:
26 # ALL-NEXT: Total number of mappings created: 2
27 # ALL-NEXT: Max number of mappings used: 2
29 # BARCELONA: Register File statistics:
30 # BARCELONA-NEXT: Total number of mappings created: 2
31 # BARCELONA-NEXT: Max number of mappings used: 2
33 # BDVER2: * Register File #1 -- PdFpuPRF:
34 # BDVER2-NEXT: Number of physical registers: 160
35 # BDVER2-NEXT: Total number of mappings created: 0
36 # BDVER2-NEXT: Max number of mappings used: 0
38 # BTVER2: * Register File #1 -- JFpuPRF:
39 # BTVER2-NEXT: Number of physical registers: 72
40 # BTVER2-NEXT: Total number of mappings created: 0
41 # BTVER2-NEXT: Max number of mappings used: 0
43 # ZNVER1: * Register File #1 -- ZnFpuPRF:
44 # ZNVER1-NEXT: Number of physical registers: 160
45 # ZNVER1-NEXT: Total number of mappings created: 0
46 # ZNVER1-NEXT: Max number of mappings used: 0
48 # ZNVER2: * Register File #1 -- Zn2FpuPRF:
49 # ZNVER2-NEXT: Number of physical registers: 160
50 # ZNVER2-NEXT: Total number of mappings created: 0
51 # ZNVER2-NEXT: Max number of mappings used: 0
53 # ZNVER3: * Register File #1 -- Zn3FpPRF:
54 # ZNVER3-NEXT: Number of physical registers: 160
55 # ZNVER3-NEXT: Total number of mappings created: 0
56 # ZNVER3-NEXT: Max number of mappings used: 0
58 # ZNVER4: * Register File #1 -- Zn4FpPRF:
59 # ZNVER4-NEXT: Number of physical registers: 192
60 # ZNVER4-NEXT: Total number of mappings created: 0
61 # ZNVER4-NEXT: Max number of mappings used: 0
63 # BDVER2: * Register File #2 -- PdIntegerPRF:
64 # BDVER2-NEXT: Number of physical registers: 96
65 # BDVER2-NEXT: Total number of mappings created: 2
66 # BDVER2-NEXT: Max number of mappings used: 2
68 # BTVER2: * Register File #2 -- JIntegerPRF:
69 # BTVER2-NEXT: Number of physical registers: 64
70 # BTVER2-NEXT: Total number of mappings created: 2
71 # BTVER2-NEXT: Max number of mappings used: 2
73 # ZNVER1: * Register File #2 -- ZnIntegerPRF:
74 # ZNVER1-NEXT: Number of physical registers: 168
75 # ZNVER1-NEXT: Total number of mappings created: 2
76 # ZNVER1-NEXT: Max number of mappings used: 2
78 # ZNVER2: * Register File #2 -- Zn2IntegerPRF:
79 # ZNVER2-NEXT: Number of physical registers: 168
80 # ZNVER2-NEXT: Total number of mappings created: 2
81 # ZNVER2-NEXT: Max number of mappings used: 2
83 # ZNVER3: * Register File #2 -- Zn3IntegerPRF:
84 # ZNVER3-NEXT: Number of physical registers: 192
85 # ZNVER3-NEXT: Total number of mappings created: 2
86 # ZNVER3-NEXT: Max number of mappings used: 2
88 # ZNVER4: * Register File #2 -- Zn4IntegerPRF:
89 # ZNVER4-NEXT: Number of physical registers: 224
90 # ZNVER4-NEXT: Total number of mappings created: 2
91 # ZNVER4-NEXT: Max number of mappings used: 2