1cb1ed400SAndrea Di Biagio# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2*b6d77e79SGeorgii Rymar# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -resource-pressure=false -instruction-info=false -mcpu=btver2 < %s 2>&1 | FileCheck --check-prefixes=ALL,DEFAULT %s
3*b6d77e79SGeorgii Rymar# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -resource-pressure=false -instruction-info=false -mcpu=btver2 -dispatch=0 < %s 2>&1 | FileCheck --check-prefixes=ALL,DEFAULT %s
4*b6d77e79SGeorgii Rymar# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -resource-pressure=false -instruction-info=false -mcpu=btver2 -dispatch=1 < %s 2>&1 | FileCheck --check-prefixes=ALL,CUSTOM %s
53a6b0920SAndrea Di Biagio
63a6b0920SAndrea Di Biagioadd %eax, %eax
73a6b0920SAndrea Di Biagio
8e790f6fbSGreg Bedwell# ALL:          Iterations:        100
9e790f6fbSGreg Bedwell# ALL-NEXT:     Instructions:      100
10e790f6fbSGreg Bedwell# ALL-NEXT:     Total Cycles:      103
11a2eee474SAndrea Di Biagio# ALL-NEXT:     Total uOps:        100
12cb1ed400SAndrea Di Biagio
13a2eee474SAndrea Di Biagio# CUSTOM:       Dispatch Width:    1
14a2eee474SAndrea Di Biagio# CUSTOM-NEXT:  uOps Per Cycle:    0.97
15a2eee474SAndrea Di Biagio# CUSTOM-NEXT:  IPC:               0.97
16e790f6fbSGreg Bedwell# CUSTOM-NEXT:  Block RThroughput: 1.0
17a2eee474SAndrea Di Biagio
18a2eee474SAndrea Di Biagio# DEFAULT:      Dispatch Width:    2
19a2eee474SAndrea Di Biagio# DEFAULT-NEXT: uOps Per Cycle:    0.97
20a2eee474SAndrea Di Biagio# DEFAULT-NEXT: IPC:               0.97
21e790f6fbSGreg Bedwell# DEFAULT-NEXT: Block RThroughput: 0.5
22