blob: dc6a585d3d376276441d161f69e576d5ba19389f [file] [log] [blame]
Andrea Di Biagio06268642018-04-24 16:19:08 +00001# 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 %s -check-prefixes=ALL,INTEL
3# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -resource-pressure=false -output-asm-variant=0 < %s | FileCheck %s -check-prefixes=ALL,ATT
4# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -resource-pressure=false -output-asm-variant=1 < %s | FileCheck %s -check-prefixes=ALL,INTEL
5
6 .intel_syntax noprefix
7 mov eax, 1
Reid Kleckner953bdce2018-10-24 20:23:57 +00008 mov ebx, 0xff
Andrea Di Biagio06268642018-04-24 16:19:08 +00009 imul esi, edi
10 lea eax, [rsi + rdi]
11
Greg Bedwelle790f6f2018-05-24 16:36:44 +000012# ALL: Iterations: 100
13# ALL-NEXT: Instructions: 400
Andrea Di Biagioc9649eb2019-08-22 15:20:16 +000014# ALL-NEXT: Total Cycles: 306
15# ALL-NEXT: Total uOps: 400
Andrea Di Biagioa2eee472018-08-29 17:56:39 +000016
17# ALL: Dispatch Width: 2
Andrea Di Biagioc9649eb2019-08-22 15:20:16 +000018# ALL-NEXT: uOps Per Cycle: 1.31
Greg Bedwelle790f6f2018-05-24 16:36:44 +000019# ALL-NEXT: IPC: 1.31
Andrea Di Biagioc9649eb2019-08-22 15:20:16 +000020# ALL-NEXT: Block RThroughput: 2.0
Andrea Di Biagio06268642018-04-24 16:19:08 +000021
Greg Bedwelle790f6f2018-05-24 16:36:44 +000022# 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
Andrea Di Biagiof84b0a62018-07-15 11:43:11 +000028# ALL-NEXT: [6]: HasSideEffects (U)
Andrea Di Biagio06268642018-04-24 16:19:08 +000029
Greg Bedwelle790f6f2018-05-24 16:36:44 +000030# ALL: [1] [2] [3] [4] [5] [6] Instructions:
31
32# ATT-NEXT: 1 1 0.50 movl $1, %eax
33# ATT-NEXT: 1 1 0.50 movl $255, %ebx
Andrea Di Biagioc9649eb2019-08-22 15:20:16 +000034# ATT-NEXT: 1 3 1.00 imull %edi, %esi
Greg Bedwelle790f6f2018-05-24 16:36:44 +000035# ATT-NEXT: 1 1 0.50 leal (%rsi,%rdi), %eax
36
Andrea Di Biagiocb1ed402018-05-21 17:11:56 +000037# INTEL-NEXT: 1 1 0.50 mov eax, 1
38# INTEL-NEXT: 1 1 0.50 mov ebx, 255
Andrea Di Biagioc9649eb2019-08-22 15:20:16 +000039# INTEL-NEXT: 1 3 1.00 imul esi, edi
Andrea Di Biagiocb1ed402018-05-21 17:11:56 +000040# INTEL-NEXT: 1 1 0.50 lea eax, [rsi + rdi]