File: zero-latency-move.s

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (60 lines) | stat: -rw-r--r-- 2,127 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m3 -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,M3
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m4 -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,M4
# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m5 -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,M5

  mov	x0, x1
  mov	sp, x0

  mov	w0, #0x3210
  add	w0, w1, #0

  adr	x0, 1f
  ldr	x0, [x0]

  adrp	x0, 1f
  add	x0, x0, :lo12:1f

  fmov	s0, s1

  movi	d0, #0

1:

# ALL:      Iterations:        100
# ALL-NEXT: Instructions:      1000
# ALL-NEXT: Total Cycles:      172
# ALL-NEXT: Total uOps:        1000

# ALL:      Dispatch Width:    6
# ALL-NEXT: uOps Per Cycle:    5.81
# ALL-NEXT: IPC:               5.81
# ALL-NEXT: Block RThroughput: 1.7

# ALL:      Instruction Info:
# ALL-NEXT: [1]: #uOps
# ALL-NEXT: [2]: Latency
# ALL-NEXT: [3]: RThroughput
# ALL-NEXT: [4]: MayLoad
# ALL-NEXT: [5]: MayStore
# ALL-NEXT: [6]: HasSideEffects (U)

# ALL:      [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
# ALL-NEXT:  1      0     0.17                        mov	x0, x1
# ALL-NEXT:  1      0     0.17                        mov	sp, x0
# ALL-NEXT:  1      0     0.17                        mov	w0, #12816

# M3-NEXT:   1      1     0.25                        add	w0, w1, #0
# M4-NEXT:   1      1     0.25                        add	w0, w1, #0
# M5-NEXT:   1      1     0.17                        add	w0, w1, #0

# ALL-NEXT:  1      0     0.17                        adr	x0, {{\.?}}Ltmp0
# ALL-NEXT:  1      4     0.50    *                   ldr	x0, [x0]
# ALL-NEXT:  1      0     0.17                        adrp	x0, {{\.?}}Ltmp0
# ALL-NEXT:  1      1     0.25                        add	x0, x0, :lo12:{{\.?}}Ltmp0

# M3-NEXT:   1      1     0.33                        fmov	s0, s1
# M4-NEXT:   1      1     0.33                        fmov	s0, s1
# M5-NEXT:   1      2     0.33                        fmov	s0, s1

# ALL-NEXT:  1      0     0.17                        movi	d0, #0000000000000000