1# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m3 -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,M3
3# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m4 -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,M4
4# RUN: llvm-mca -march=aarch64 -mcpu=exynos-m5 -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,M5
5
6  mov	x0, x1
7  mov	sp, x0
8
9  mov	w0, #0x3210
10  add	w0, w1, #0
11
12  adr	x0, 1f
13  ldr	x0, [x0]
14
15  adrp	x0, 1f
16  add	x0, x0, :lo12:1f
17
18  fmov	s0, s1
19
20  movi	d0, #0
21
221:
23
24# ALL:      Iterations:        100
25# ALL-NEXT: Instructions:      1000
26# ALL-NEXT: Total Cycles:      172
27# ALL-NEXT: Total uOps:        1000
28
29# ALL:      Dispatch Width:    6
30# ALL-NEXT: uOps Per Cycle:    5.81
31# ALL-NEXT: IPC:               5.81
32# ALL-NEXT: Block RThroughput: 1.7
33
34# ALL:      Instruction Info:
35# ALL-NEXT: [1]: #uOps
36# ALL-NEXT: [2]: Latency
37# ALL-NEXT: [3]: RThroughput
38# ALL-NEXT: [4]: MayLoad
39# ALL-NEXT: [5]: MayStore
40# ALL-NEXT: [6]: HasSideEffects (U)
41
42# ALL:      [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
43# ALL-NEXT:  1      0     0.17                        mov	x0, x1
44# ALL-NEXT:  1      0     0.17                        mov	sp, x0
45# ALL-NEXT:  1      0     0.17                        mov	w0, #12816
46
47# M3-NEXT:   1      1     0.25                        add	w0, w1, #0
48# M4-NEXT:   1      1     0.25                        add	w0, w1, #0
49# M5-NEXT:   1      1     0.17                        add	w0, w1, #0
50
51# ALL-NEXT:  1      0     0.17                        adr	x0, {{\.?}}Ltmp0
52# ALL-NEXT:  1      4     0.50    *                   ldr	x0, [x0]
53# ALL-NEXT:  1      0     0.17                        adrp	x0, {{\.?}}Ltmp0
54# ALL-NEXT:  1      1     0.25                        add	x0, x0, :lo12:{{\.?}}Ltmp0
55
56# M3-NEXT:   1      1     0.33                        fmov	s0, s1
57# M4-NEXT:   1      1     0.33                        fmov	s0, s1
58# M5-NEXT:   1      2     0.33                        fmov	s0, s1
59
60# ALL-NEXT:  1      0     0.17                        movi	d0, #0000000000000000
61