sve-copy-zprpair.mir
1.92 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve -run-pass=postrapseudos -simplify-mir -verify-machineinstrs %s -o - | FileCheck %s
---
name: copy_zpr2
alignment: 4
tracksRegLiveness: true
liveins:
- { reg: '$z0_z1' }
frameInfo:
maxCallFrameSize: 0
body: |
bb.0:
liveins: $z0_z1
; CHECK-LABEL: name: copy_zpr2
; CHECK: liveins: $z0_z1
; CHECK: $z2 = ORR_ZZZ $z1, $z1
; CHECK: $z1 = ORR_ZZZ $z0, $z0
; CHECK: $z0 = ORR_ZZZ $z1, $z1
; CHECK: $z1 = ORR_ZZZ $z2, $z2
; CHECK: RET_ReallyLR
$z1_z2 = COPY $z0_z1
$z0_z1 = COPY $z1_z2
RET_ReallyLR
...
---
name: copy_zpr3
alignment: 4
tracksRegLiveness: true
liveins:
- { reg: '$z0_z1_z2' }
frameInfo:
maxCallFrameSize: 0
body: |
bb.0:
liveins: $z0_z1_z2
; CHECK-LABEL: name: copy_zpr3
; CHECK: liveins: $z0_z1_z2
; CHECK: $z3 = ORR_ZZZ $z2, $z2
; CHECK: $z2 = ORR_ZZZ $z1, $z1
; CHECK: $z1 = ORR_ZZZ $z0, $z0
; CHECK: $z0 = ORR_ZZZ $z1, $z1
; CHECK: $z1 = ORR_ZZZ $z2, $z2
; CHECK: $z2 = ORR_ZZZ $z3, $z3
; CHECK: RET_ReallyLR
$z1_z2_z3 = COPY $z0_z1_z2
$z0_z1_z2 = COPY $z1_z2_z3
RET_ReallyLR
...
---
name: copy_zpr4
alignment: 4
tracksRegLiveness: true
liveins:
- { reg: '$z0_z1_z2_z3' }
frameInfo:
maxCallFrameSize: 0
body: |
bb.0:
liveins: $z0_z1_z2_z3
; CHECK-LABEL: name: copy_zpr4
; CHECK: liveins: $z0_z1_z2_z3
; CHECK: $z4 = ORR_ZZZ $z3, $z3
; CHECK: $z3 = ORR_ZZZ $z2, $z2
; CHECK: $z2 = ORR_ZZZ $z1, $z1
; CHECK: $z1 = ORR_ZZZ $z0, $z0
; CHECK: $z0 = ORR_ZZZ $z1, $z1
; CHECK: $z1 = ORR_ZZZ $z2, $z2
; CHECK: $z2 = ORR_ZZZ $z3, $z3
; CHECK: $z3 = ORR_ZZZ $z4, $z4
; CHECK: RET_ReallyLR
$z1_z2_z3_z4 = COPY $z0_z1_z2_z3
$z0_z1_z2_z3 = COPY $z1_z2_z3_z4
RET_ReallyLR
...