Home | History | Annotate | Download | only in X86
      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-prefix=ALL --check-prefix=DEFAULT %s
      3 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=0 -resource-pressure=false < %s | FileCheck --check-prefix=ALL --check-prefix=DEFAULT %s
      4 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=1 -resource-pressure=false < %s | FileCheck --check-prefix=ALL --check-prefix=CUSTOM %s
      5 
      6 add %eax, %eax
      7 
      8 # CUSTOM:       Iterations:        1
      9 # CUSTOM-NEXT:  Instructions:      1
     10 # CUSTOM-NEXT:  Total Cycles:      4
     11 # CUSTOM-NEXT:  Dispatch Width:    2
     12 # CUSTOM-NEXT:  IPC:               0.25
     13 # CUSTOM-NEXT:  Block RThroughput: 0.5
     14 
     15 # DEFAULT:      Iterations:        100
     16 # DEFAULT-NEXT: Instructions:      100
     17 # DEFAULT-NEXT: Total Cycles:      103
     18 # DEFAULT-NEXT: Dispatch Width:    2
     19 # DEFAULT-NEXT: IPC:               0.97
     20 # DEFAULT-NEXT: Block RThroughput: 0.5
     21 
     22 # ALL:          Instruction Info:
     23 # ALL-NEXT:     [1]: #uOps
     24 # ALL-NEXT:     [2]: Latency
     25 # ALL-NEXT:     [3]: RThroughput
     26 # ALL-NEXT:     [4]: MayLoad
     27 # ALL-NEXT:     [5]: MayStore
     28 # ALL-NEXT:     [6]: HasSideEffects (U)
     29 
     30 # ALL:          [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
     31 # ALL-NEXT:      1      1     0.50                        addl	%eax, %eax
     32