| 1 |
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py |
| 2 |
# 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 |
# 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 |
# 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 |
| 5 |
|
| 6 |
add %eax, %eax |
| 7 |
|
| 8 |
# ALL: Iterations: 100 |
| 9 |
# ALL-NEXT: Instructions: 100 |
| 10 |
# ALL-NEXT: Total Cycles: 103 |
| 11 |
# ALL-NEXT: Total uOps: 100 |
| 12 |
|
| 13 |
# CUSTOM: Dispatch Width: 1 |
| 14 |
# CUSTOM-NEXT: uOps Per Cycle: 0.97 |
| 15 |
# CUSTOM-NEXT: IPC: 0.97 |
| 16 |
# CUSTOM-NEXT: Block RThroughput: 1.0 |
| 17 |
|
| 18 |
# DEFAULT: Dispatch Width: 2 |
| 19 |
# DEFAULT-NEXT: uOps Per Cycle: 0.97 |
| 20 |
# DEFAULT-NEXT: IPC: 0.97 |
| 21 |
# DEFAULT-NEXT: Block RThroughput: 0.5 |