41 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,INTEL3# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -resource-pressure=false -output-asm-variant=0 < %s | FileCheck %s -check-prefixes=ALL,ATT4# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -resource-pressure=false -output-asm-variant=1 < %s | FileCheck %s -check-prefixes=ALL,INTEL5 6 .intel_syntax noprefix7 mov eax, 18 mov ebx, 0xff9 imul esi, edi10 lea eax, [rsi + rdi]11 12# ALL: Iterations: 10013# ALL-NEXT: Instructions: 40014# ALL-NEXT: Total Cycles: 30615# ALL-NEXT: Total uOps: 40016 17# ALL: Dispatch Width: 218# ALL-NEXT: uOps Per Cycle: 1.3119# ALL-NEXT: IPC: 1.3120# ALL-NEXT: Block RThroughput: 2.021 22# ALL: Instruction Info:23# ALL-NEXT: [1]: #uOps24# ALL-NEXT: [2]: Latency25# ALL-NEXT: [3]: RThroughput26# ALL-NEXT: [4]: MayLoad27# ALL-NEXT: [5]: MayStore28# ALL-NEXT: [6]: HasSideEffects (U)29 30# ALL: [1] [2] [3] [4] [5] [6] Instructions:31 32# ATT-NEXT: 1 1 0.50 movl $1, %eax33# ATT-NEXT: 1 1 0.50 movl $255, %ebx34# ATT-NEXT: 1 3 1.00 imull %edi, %esi35# ATT-NEXT: 1 1 0.50 leal (%rsi,%rdi), %eax36 37# INTEL-NEXT: 1 1 0.50 mov eax, 138# INTEL-NEXT: 1 1 0.50 mov ebx, 25539# INTEL-NEXT: 1 3 1.00 imul esi, edi40# INTEL-NEXT: 1 1 0.50 lea eax, [rsi + rdi]41