Andrea Di Biagio | 0626864 | 2018-04-24 16:19:08 +0000 | [diff] [blame] | 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 %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 |
| 8 | mov ebx, 0ffh |
| 9 | imul esi, edi |
| 10 | lea eax, [rsi + rdi] |
| 11 | |
| 12 | # ALL: Iterations: 100 |
| 13 | # ALL-NEXT: Instructions: 400 |
| 14 | # ALL-NEXT: Total Cycles: 305 |
| 15 | # ALL-NEXT: Dispatch Width: 2 |
| 16 | # ALL-NEXT: IPC: 1.31 |
| 17 | |
| 18 | # ALL: Instruction Info: |
| 19 | # ALL-NEXT: [1]: #uOps |
| 20 | # ALL-NEXT: [2]: Latency |
| 21 | # ALL-NEXT: [3]: RThroughput |
| 22 | # ALL-NEXT: [4]: MayLoad |
| 23 | # ALL-NEXT: [5]: MayStore |
| 24 | # ALL-NEXT: [6]: HasSideEffects |
| 25 | |
Andrea Di Biagio | cb1ed40 | 2018-05-21 17:11:56 +0000 | [diff] [blame^] | 26 | # INTEL: [1] [2] [3] [4] [5] [6] Instructions: |
| 27 | # INTEL-NEXT: 1 1 0.50 mov eax, 1 |
| 28 | # INTEL-NEXT: 1 1 0.50 mov ebx, 255 |
| 29 | # INTEL-NEXT: 2 3 1.00 imul esi, edi |
| 30 | # INTEL-NEXT: 1 1 0.50 lea eax, [rsi + rdi] |
Andrea Di Biagio | 0626864 | 2018-04-24 16:19:08 +0000 | [diff] [blame] | 31 | |
Andrea Di Biagio | cb1ed40 | 2018-05-21 17:11:56 +0000 | [diff] [blame^] | 32 | # ATT: [1] [2] [3] [4] [5] [6] Instructions: |
| 33 | # ATT-NEXT: 1 1 0.50 movl $1, %eax |
| 34 | # ATT-NEXT: 1 1 0.50 movl $255, %ebx |
| 35 | # ATT-NEXT: 2 3 1.00 imull %edi, %esi |
| 36 | # ATT-NEXT: 1 1 0.50 leal (%rsi,%rdi), %eax |
Andrea Di Biagio | 0626864 | 2018-04-24 16:19:08 +0000 | [diff] [blame] | 37 | |