1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -instruction-tables < %s | FileCheck %s
5 vcvtph2ps
(%rax
), %xmm2
8 vcvtph2ps
(%rax
), %ymm2
10 vcvtps2ph $
0, %xmm0
, %xmm2
11 vcvtps2ph $
0, %xmm0
, (%rax
)
13 vcvtps2ph $
0, %ymm0
, %xmm2
14 vcvtps2ph $
0, %ymm0
, (%rax
)
16 # CHECK: Instruction Info:
17 # CHECK-NEXT: [1]: #uOps
18 # CHECK-NEXT: [2]: Latency
19 # CHECK-NEXT: [3]: RThroughput
20 # CHECK-NEXT: [4]: MayLoad
21 # CHECK-NEXT: [5]: MayStore
22 # CHECK-NEXT: [6]: HasSideEffects (U)
24 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
25 # CHECK-NEXT: 2 8 2.00 vcvtph2ps %xmm0, %xmm2
26 # CHECK-NEXT: 3 13 2.00 * vcvtph2ps (%rax), %xmm2
27 # CHECK-NEXT: 4 8 2.00 vcvtph2ps %xmm0, %ymm2
28 # CHECK-NEXT: 7 13 2.00 * vcvtph2ps (%rax), %ymm2
29 # CHECK-NEXT: 2 8 2.00 vcvtps2ph $0, %xmm0, %xmm2
30 # CHECK-NEXT: 3 4 2.00 * vcvtps2ph $0, %xmm0, (%rax)
31 # CHECK-NEXT: 4 8 2.00 vcvtps2ph $0, %ymm0, %xmm2
32 # CHECK-NEXT: 4 4 2.00 * vcvtps2ph $0, %ymm0, (%rax)
35 # CHECK-NEXT: [0.0] - PdAGLU01
36 # CHECK-NEXT: [0.1] - PdAGLU01
37 # CHECK-NEXT: [1] - PdBranch
38 # CHECK-NEXT: [2] - PdCount
39 # CHECK-NEXT: [3] - PdDiv
40 # CHECK-NEXT: [4] - PdEX0
41 # CHECK-NEXT: [5] - PdEX1
42 # CHECK-NEXT: [6] - PdFPCVT
43 # CHECK-NEXT: [7.0] - PdFPFMA
44 # CHECK-NEXT: [7.1] - PdFPFMA
45 # CHECK-NEXT: [8.0] - PdFPMAL
46 # CHECK-NEXT: [8.1] - PdFPMAL
47 # CHECK-NEXT: [9] - PdFPMMA
48 # CHECK-NEXT: [10] - PdFPSTO
49 # CHECK-NEXT: [11] - PdFPU0
50 # CHECK-NEXT: [12] - PdFPU1
51 # CHECK-NEXT: [13] - PdFPU2
52 # CHECK-NEXT: [14] - PdFPU3
53 # CHECK-NEXT: [15] - PdFPXBR
54 # CHECK-NEXT: [16.0] - PdLoad
55 # CHECK-NEXT: [16.1] - PdLoad
56 # CHECK-NEXT: [17] - PdMul
57 # CHECK-NEXT: [18] - PdStore
59 # CHECK: Resource pressure per iteration:
60 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18]
61 # CHECK-NEXT: 4.00 4.00 - - - - - 16.00 1.00 1.00 - - - 8.00 8.00 - - - - 3.00 3.00 - 2.00
63 # CHECK: Resource pressure by instruction:
64 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18] Instructions:
65 # CHECK-NEXT: - - - - - - - 2.00 - - - - - 1.00 1.00 - - - - - - - - vcvtph2ps %xmm0, %xmm2
66 # CHECK-NEXT: 1.50 1.50 - - - - - 2.00 - - - - - 1.00 1.00 - - - - 1.50 1.50 - - vcvtph2ps (%rax), %xmm2
67 # CHECK-NEXT: - - - - - - - 2.00 - - - - - 1.00 1.00 - - - - - - - - vcvtph2ps %xmm0, %ymm2
68 # CHECK-NEXT: 1.50 1.50 - - - - - 2.00 - - - - - 1.00 1.00 - - - - 1.50 1.50 - - vcvtph2ps (%rax), %ymm2
69 # CHECK-NEXT: - - - - - - - 2.00 - - - - - 1.00 1.00 - - - - - - - - vcvtps2ph $0, %xmm0, %xmm2
70 # CHECK-NEXT: 0.50 0.50 - - - - - 2.00 - - - - - 1.00 1.00 - - - - - - - 1.00 vcvtps2ph $0, %xmm0, (%rax)
71 # CHECK-NEXT: - - - - - - - 2.00 0.50 0.50 - - - 1.00 1.00 - - - - - - - - vcvtps2ph $0, %ymm0, %xmm2
72 # CHECK-NEXT: 0.50 0.50 - - - - - 2.00 0.50 0.50 - - - 1.00 1.00 - - - - - - - 1.00 vcvtps2ph $0, %ymm0, (%rax)