Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-mca / X86 / register-file-statistics.s
blob685433ae162d9563e807124b552c3eb5ff9e341a
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=sandybridge -iterations=1 -all-stats=false -all-views=false -register-file-stats < %s | FileCheck --check-prefixes=ALL %s
8 # 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
9 # 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
10 # 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
11 # 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
12 # 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
13 # 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
14 # 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
16 xor %eax, %ebx
18 # ALL: Register File statistics:
19 # ALL-NEXT: Total number of mappings created: 2
20 # ALL-NEXT: Max number of mappings used: 2
22 # BARCELONA: Register File statistics:
23 # BARCELONA-NEXT: Total number of mappings created: 2
24 # BARCELONA-NEXT: Max number of mappings used: 2
26 # BDVER2: * Register File #1 -- PdFpuPRF:
27 # BDVER2-NEXT: Number of physical registers: 160
28 # BDVER2-NEXT: Total number of mappings created: 0
29 # BDVER2-NEXT: Max number of mappings used: 0
31 # BTVER2: * Register File #1 -- JFpuPRF:
32 # BTVER2-NEXT: Number of physical registers: 72
33 # BTVER2-NEXT: Total number of mappings created: 0
34 # BTVER2-NEXT: Max number of mappings used: 0
36 # ZNVER1: * Register File #1 -- ZnFpuPRF:
37 # ZNVER1-NEXT: Number of physical registers: 160
38 # ZNVER1-NEXT: Total number of mappings created: 0
39 # ZNVER1-NEXT: Max number of mappings used: 0
41 # BDVER2: * Register File #2 -- PdIntegerPRF:
42 # BDVER2-NEXT: Number of physical registers: 96
43 # BDVER2-NEXT: Total number of mappings created: 2
44 # BDVER2-NEXT: Max number of mappings used: 2
46 # BTVER2: * Register File #2 -- JIntegerPRF:
47 # BTVER2-NEXT: Number of physical registers: 64
48 # BTVER2-NEXT: Total number of mappings created: 2
49 # BTVER2-NEXT: Max number of mappings used: 2
51 # ZNVER1: * Register File #2 -- ZnIntegerPRF:
52 # ZNVER1-NEXT: Number of physical registers: 168
53 # ZNVER1-NEXT: Total number of mappings created: 2
54 # ZNVER1-NEXT: Max number of mappings used: 2