1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py 2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver2 -instruction-tables < %s | FileCheck %s 3 4bzhi %eax, %ebx, %ecx 5bzhi %eax, (%rbx), %ecx 6 7bzhi %rax, %rbx, %rcx 8bzhi %rax, (%rbx), %rcx 9 10mulx %eax, %ebx, %ecx 11mulx (%rax), %ebx, %ecx 12 13mulx %rax, %rbx, %rcx 14mulx (%rax), %rbx, %rcx 15 16pdep %eax, %ebx, %ecx 17pdep (%rax), %ebx, %ecx 18 19pdep %rax, %rbx, %rcx 20pdep (%rax), %rbx, %rcx 21 22pext %eax, %ebx, %ecx 23pext (%rax), %ebx, %ecx 24 25pext %rax, %rbx, %rcx 26pext (%rax), %rbx, %rcx 27 28rorx $1, %eax, %ecx 29rorx $1, (%rax), %ecx 30 31rorx $1, %rax, %rcx 32rorx $1, (%rax), %rcx 33 34sarx %eax, %ebx, %ecx 35sarx %eax, (%rbx), %ecx 36 37sarx %rax, %rbx, %rcx 38sarx %rax, (%rbx), %rcx 39 40shlx %eax, %ebx, %ecx 41shlx %eax, (%rbx), %ecx 42 43shlx %rax, %rbx, %rcx 44shlx %rax, (%rbx), %rcx 45 46shrx %eax, %ebx, %ecx 47shrx %eax, (%rbx), %ecx 48 49shrx %rax, %rbx, %rcx 50shrx %rax, (%rbx), %rcx 51 52# CHECK: Instruction Info: 53# CHECK-NEXT: [1]: #uOps 54# CHECK-NEXT: [2]: Latency 55# CHECK-NEXT: [3]: RThroughput 56# CHECK-NEXT: [4]: MayLoad 57# CHECK-NEXT: [5]: MayStore 58# CHECK-NEXT: [6]: HasSideEffects (U) 59 60# CHECK: [1] [2] [3] [4] [5] [6] Instructions: 61# CHECK-NEXT: 1 1 0.25 bzhil %eax, %ebx, %ecx 62# CHECK-NEXT: 2 5 0.33 * bzhil %eax, (%rbx), %ecx 63# CHECK-NEXT: 1 1 0.25 bzhiq %rax, %rbx, %rcx 64# CHECK-NEXT: 2 5 0.33 * bzhiq %rax, (%rbx), %rcx 65# CHECK-NEXT: 1 3 2.00 mulxl %eax, %ebx, %ecx 66# CHECK-NEXT: 1 7 2.00 * mulxl (%rax), %ebx, %ecx 67# CHECK-NEXT: 1 3 1.00 mulxq %rax, %rbx, %rcx 68# CHECK-NEXT: 1 7 1.00 * mulxq (%rax), %rbx, %rcx 69# CHECK-NEXT: 1 100 0.25 pdepl %eax, %ebx, %ecx 70# CHECK-NEXT: 1 100 0.25 * pdepl (%rax), %ebx, %ecx 71# CHECK-NEXT: 1 100 0.25 pdepq %rax, %rbx, %rcx 72# CHECK-NEXT: 1 100 0.25 * pdepq (%rax), %rbx, %rcx 73# CHECK-NEXT: 1 100 0.25 pextl %eax, %ebx, %ecx 74# CHECK-NEXT: 1 100 0.25 * pextl (%rax), %ebx, %ecx 75# CHECK-NEXT: 1 100 0.25 pextq %rax, %rbx, %rcx 76# CHECK-NEXT: 1 100 0.25 * pextq (%rax), %rbx, %rcx 77# CHECK-NEXT: 1 1 0.25 rorxl $1, %eax, %ecx 78# CHECK-NEXT: 2 5 0.33 * rorxl $1, (%rax), %ecx 79# CHECK-NEXT: 1 1 0.25 rorxq $1, %rax, %rcx 80# CHECK-NEXT: 2 5 0.33 * rorxq $1, (%rax), %rcx 81# CHECK-NEXT: 1 1 0.25 sarxl %eax, %ebx, %ecx 82# CHECK-NEXT: 2 5 0.33 * sarxl %eax, (%rbx), %ecx 83# CHECK-NEXT: 1 1 0.25 sarxq %rax, %rbx, %rcx 84# CHECK-NEXT: 2 5 0.33 * sarxq %rax, (%rbx), %rcx 85# CHECK-NEXT: 1 1 0.25 shlxl %eax, %ebx, %ecx 86# CHECK-NEXT: 2 5 0.33 * shlxl %eax, (%rbx), %ecx 87# CHECK-NEXT: 1 1 0.25 shlxq %rax, %rbx, %rcx 88# CHECK-NEXT: 2 5 0.33 * shlxq %rax, (%rbx), %rcx 89# CHECK-NEXT: 1 1 0.25 shrxl %eax, %ebx, %ecx 90# CHECK-NEXT: 2 5 0.33 * shrxl %eax, (%rbx), %ecx 91# CHECK-NEXT: 1 1 0.25 shrxq %rax, %rbx, %rcx 92# CHECK-NEXT: 2 5 0.33 * shrxq %rax, (%rbx), %rcx 93 94# CHECK: Resources: 95# CHECK-NEXT: [0] - Zn2AGU0 96# CHECK-NEXT: [1] - Zn2AGU1 97# CHECK-NEXT: [2] - Zn2AGU2 98# CHECK-NEXT: [3] - Zn2ALU0 99# CHECK-NEXT: [4] - Zn2ALU1 100# CHECK-NEXT: [5] - Zn2ALU2 101# CHECK-NEXT: [6] - Zn2ALU3 102# CHECK-NEXT: [7] - Zn2Divider 103# CHECK-NEXT: [8] - Zn2FPU0 104# CHECK-NEXT: [9] - Zn2FPU1 105# CHECK-NEXT: [10] - Zn2FPU2 106# CHECK-NEXT: [11] - Zn2FPU3 107# CHECK-NEXT: [12] - Zn2Multiplier 108 109# CHECK: Resource pressure per iteration: 110# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] 111# CHECK-NEXT: 4.00 4.00 4.00 5.00 10.00 5.00 5.00 - - - - - 5.00 112 113# CHECK: Resource pressure by instruction: 114# CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] Instructions: 115# CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - bzhil %eax, %ebx, %ecx 116# CHECK-NEXT: 0.33 0.33 0.33 0.25 0.25 0.25 0.25 - - - - - - bzhil %eax, (%rbx), %ecx 117# CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - bzhiq %rax, %rbx, %rcx 118# CHECK-NEXT: 0.33 0.33 0.33 0.25 0.25 0.25 0.25 - - - - - - bzhiq %rax, (%rbx), %rcx 119# CHECK-NEXT: - - - - 1.00 - - - - - - - 2.00 mulxl %eax, %ebx, %ecx 120# CHECK-NEXT: 0.33 0.33 0.33 - 2.00 - - - - - - - 2.00 mulxl (%rax), %ebx, %ecx 121# CHECK-NEXT: - - - - 1.00 - - - - - - - - mulxq %rax, %rbx, %rcx 122# CHECK-NEXT: 0.33 0.33 0.33 - 1.00 - - - - - - - 1.00 mulxq (%rax), %rbx, %rcx 123# CHECK-NEXT: - - - - - - - - - - - - - pdepl %eax, %ebx, %ecx 124# CHECK-NEXT: - - - - - - - - - - - - - pdepl (%rax), %ebx, %ecx 125# CHECK-NEXT: - - - - - - - - - - - - - pdepq %rax, %rbx, %rcx 126# CHECK-NEXT: - - - - - - - - - - - - - pdepq (%rax), %rbx, %rcx 127# CHECK-NEXT: - - - - - - - - - - - - - pextl %eax, %ebx, %ecx 128# CHECK-NEXT: - - - - - - - - - - - - - pextl (%rax), %ebx, %ecx 129# CHECK-NEXT: - - - - - - - - - - - - - pextq %rax, %rbx, %rcx 130# CHECK-NEXT: - - - - - - - - - - - - - pextq (%rax), %rbx, %rcx 131# CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - rorxl $1, %eax, %ecx 132# CHECK-NEXT: 0.33 0.33 0.33 0.25 0.25 0.25 0.25 - - - - - - rorxl $1, (%rax), %ecx 133# CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - rorxq $1, %rax, %rcx 134# CHECK-NEXT: 0.33 0.33 0.33 0.25 0.25 0.25 0.25 - - - - - - rorxq $1, (%rax), %rcx 135# CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - sarxl %eax, %ebx, %ecx 136# CHECK-NEXT: 0.33 0.33 0.33 0.25 0.25 0.25 0.25 - - - - - - sarxl %eax, (%rbx), %ecx 137# CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - sarxq %rax, %rbx, %rcx 138# CHECK-NEXT: 0.33 0.33 0.33 0.25 0.25 0.25 0.25 - - - - - - sarxq %rax, (%rbx), %rcx 139# CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - shlxl %eax, %ebx, %ecx 140# CHECK-NEXT: 0.33 0.33 0.33 0.25 0.25 0.25 0.25 - - - - - - shlxl %eax, (%rbx), %ecx 141# CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - shlxq %rax, %rbx, %rcx 142# CHECK-NEXT: 0.33 0.33 0.33 0.25 0.25 0.25 0.25 - - - - - - shlxq %rax, (%rbx), %rcx 143# CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - shrxl %eax, %ebx, %ecx 144# CHECK-NEXT: 0.33 0.33 0.33 0.25 0.25 0.25 0.25 - - - - - - shrxl %eax, (%rbx), %ecx 145# CHECK-NEXT: - - - 0.25 0.25 0.25 0.25 - - - - - - shrxq %rax, %rbx, %rcx 146# CHECK-NEXT: 0.33 0.33 0.33 0.25 0.25 0.25 0.25 - - - - - - shrxq %rax, (%rbx), %rcx 147