1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py 2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -resource-pressure=false < %s | FileCheck --check-prefixes=ALL,DEFAULT %s 3# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=0 -resource-pressure=false < %s | FileCheck --check-prefixes=ALL,DEFAULT %s 4# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=1 -resource-pressure=false < %s | FileCheck --check-prefixes=ALL,CUSTOM %s 5 6add %eax, %eax 7 8# CUSTOM: Iterations: 1 9# CUSTOM-NEXT: Instructions: 1 10# CUSTOM-NEXT: Total Cycles: 4 11# CUSTOM-NEXT: Total uOps: 1 12 13# DEFAULT: Iterations: 100 14# DEFAULT-NEXT: Instructions: 100 15# DEFAULT-NEXT: Total Cycles: 103 16# DEFAULT-NEXT: Total uOps: 100 17 18# ALL: Dispatch Width: 2 19 20# CUSTOM-NEXT: uOps Per Cycle: 0.25 21# CUSTOM-NEXT: IPC: 0.25 22 23# DEFAULT-NEXT: uOps Per Cycle: 0.97 24# DEFAULT-NEXT: IPC: 0.97 25 26# ALL-NEXT: Block RThroughput: 0.5 27 28# ALL: Instruction Info: 29# ALL-NEXT: [1]: #uOps 30# ALL-NEXT: [2]: Latency 31# ALL-NEXT: [3]: RThroughput 32# ALL-NEXT: [4]: MayLoad 33# ALL-NEXT: [5]: MayStore 34# ALL-NEXT: [6]: HasSideEffects (U) 35 36# ALL: [1] [2] [3] [4] [5] [6] Instructions: 37# ALL-NEXT: 1 1 0.50 addl %eax, %eax 38