Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-mca / X86 / SapphireRapids / resources-gfni.s
blob097af7bccaf741c8588a7ac15732706f06a9f1a6
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=sapphirerapids -instruction-tables < %s | FileCheck %s
4 gf2p8affineinvqb $0, %xmm0, %xmm1
5 gf2p8affineinvqb $0, (%rax), %xmm1
7 gf2p8affineqb $0, %xmm0, %xmm1
8 gf2p8affineqb $0, (%rax), %xmm1
10 gf2p8mulb %xmm0, %xmm1
11 gf2p8mulb (%rax), %xmm1
13 # CHECK: Instruction Info:
14 # CHECK-NEXT: [1]: #uOps
15 # CHECK-NEXT: [2]: Latency
16 # CHECK-NEXT: [3]: RThroughput
17 # CHECK-NEXT: [4]: MayLoad
18 # CHECK-NEXT: [5]: MayStore
19 # CHECK-NEXT: [6]: HasSideEffects (U)
21 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
22 # CHECK-NEXT: 1 5 0.50 gf2p8affineinvqb $0, %xmm0, %xmm1
23 # CHECK-NEXT: 2 12 0.50 * gf2p8affineinvqb $0, (%rax), %xmm1
24 # CHECK-NEXT: 1 5 0.50 gf2p8affineqb $0, %xmm0, %xmm1
25 # CHECK-NEXT: 2 12 0.50 * gf2p8affineqb $0, (%rax), %xmm1
26 # CHECK-NEXT: 1 5 0.50 gf2p8mulb %xmm0, %xmm1
27 # CHECK-NEXT: 2 12 0.50 * gf2p8mulb (%rax), %xmm1
29 # CHECK: Resources:
30 # CHECK-NEXT: [0] - SPRPort00
31 # CHECK-NEXT: [1] - SPRPort01
32 # CHECK-NEXT: [2] - SPRPort02
33 # CHECK-NEXT: [3] - SPRPort03
34 # CHECK-NEXT: [4] - SPRPort04
35 # CHECK-NEXT: [5] - SPRPort05
36 # CHECK-NEXT: [6] - SPRPort06
37 # CHECK-NEXT: [7] - SPRPort07
38 # CHECK-NEXT: [8] - SPRPort08
39 # CHECK-NEXT: [9] - SPRPort09
40 # CHECK-NEXT: [10] - SPRPort10
41 # CHECK-NEXT: [11] - SPRPort11
42 # CHECK-NEXT: [12] - SPRPortInvalid
44 # CHECK: Resource pressure per iteration:
45 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
46 # CHECK-NEXT: 3.00 3.00 1.00 1.00 - - - - - - - 1.00 -
48 # CHECK: Resource pressure by instruction:
49 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] Instructions:
50 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - gf2p8affineinvqb $0, %xmm0, %xmm1
51 # CHECK-NEXT: 0.50 0.50 0.33 0.33 - - - - - - - 0.33 - gf2p8affineinvqb $0, (%rax), %xmm1
52 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - gf2p8affineqb $0, %xmm0, %xmm1
53 # CHECK-NEXT: 0.50 0.50 0.33 0.33 - - - - - - - 0.33 - gf2p8affineqb $0, (%rax), %xmm1
54 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - gf2p8mulb %xmm0, %xmm1
55 # CHECK-NEXT: 0.50 0.50 0.33 0.33 - - - - - - - 0.33 - gf2p8mulb (%rax), %xmm1