• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -instruction-tables < %s | FileCheck %s
3
4vcvtph2ps   %xmm0, %xmm2
5vcvtph2ps   (%rax), %xmm2
6
7vcvtph2ps   %xmm0, %ymm2
8vcvtph2ps   (%rax), %ymm2
9
10vcvtps2ph   $0, %xmm0, %xmm2
11vcvtps2ph   $0, %xmm0, (%rax)
12
13vcvtps2ph   $0, %ymm0, %xmm2
14vcvtps2ph   $0, %ymm0, (%rax)
15
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)
23
24# CHECK:      [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
25# CHECK-NEXT:  1      3     1.00                        vcvtph2ps	%xmm0, %xmm2
26# CHECK-NEXT:  2      8     1.00    *                   vcvtph2ps	(%rax), %xmm2
27# CHECK-NEXT:  1      3     1.00                        vcvtph2ps	%xmm0, %ymm2
28# CHECK-NEXT:  2      8     1.00    *                   vcvtph2ps	(%rax), %ymm2
29# CHECK-NEXT:  1      3     1.00                        vcvtps2ph	$0, %xmm0, %xmm2
30# CHECK-NEXT:  1      4     1.00           *            vcvtps2ph	$0, %xmm0, (%rax)
31# CHECK-NEXT:  1      3     1.00                        vcvtps2ph	$0, %ymm0, %xmm2
32# CHECK-NEXT:  1      4     1.00           *            vcvtps2ph	$0, %ymm0, (%rax)
33
34# CHECK:      Resources:
35# CHECK-NEXT: [0]   - SBDivider
36# CHECK-NEXT: [1]   - SBFPDivider
37# CHECK-NEXT: [2]   - SBPort0
38# CHECK-NEXT: [3]   - SBPort1
39# CHECK-NEXT: [4]   - SBPort4
40# CHECK-NEXT: [5]   - SBPort5
41# CHECK-NEXT: [6.0] - SBPort23
42# CHECK-NEXT: [6.1] - SBPort23
43
44# CHECK:      Resource pressure per iteration:
45# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6.0]  [6.1]
46# CHECK-NEXT:  -      -      -     8.00   2.00    -     2.00   2.00
47
48# CHECK:      Resource pressure by instruction:
49# CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6.0]  [6.1]  Instructions:
50# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     vcvtph2ps	%xmm0, %xmm2
51# CHECK-NEXT:  -      -      -     1.00    -      -     0.50   0.50   vcvtph2ps	(%rax), %xmm2
52# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     vcvtph2ps	%xmm0, %ymm2
53# CHECK-NEXT:  -      -      -     1.00    -      -     0.50   0.50   vcvtph2ps	(%rax), %ymm2
54# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     vcvtps2ph	$0, %xmm0, %xmm2
55# CHECK-NEXT:  -      -      -     1.00   1.00    -     0.50   0.50   vcvtps2ph	$0, %xmm0, (%rax)
56# CHECK-NEXT:  -      -      -     1.00    -      -      -      -     vcvtps2ph	$0, %ymm0, %xmm2
57# CHECK-NEXT:  -      -      -     1.00   1.00    -     0.50   0.50   vcvtps2ph	$0, %ymm0, (%rax)
58