1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve -run-pass=postrapseudos -simplify-mir -verify-machineinstrs %s -o - | FileCheck %s
7 tracksRegLiveness: true
15 ; CHECK-LABEL: name: copy_zpr2
16 ; CHECK: liveins: $z0_z1
17 ; CHECK: $z2 = ORR_ZZZ $z1, $z1
18 ; CHECK: $z1 = ORR_ZZZ $z0, $z0
19 ; CHECK: $z0 = ORR_ZZZ $z1, $z1
20 ; CHECK: $z1 = ORR_ZZZ $z2, $z2
28 name: copy_zpr2strided
30 tracksRegLiveness: true
38 ; CHECK-LABEL: name: copy_zpr2strided
39 ; CHECK: liveins: $z0_z1
40 ; CHECK: $z8 = ORR_ZZZ $z1, $z1
41 ; CHECK: $z0 = ORR_ZZZ $z0, $z0
42 ; CHECK: $z1 = ORR_ZZZ $z8, $z8
43 ; CHECK: $z0 = ORR_ZZZ $z0, $z0
53 tracksRegLiveness: true
55 - { reg: '$z0_z1_z2' }
61 ; CHECK-LABEL: name: copy_zpr3
62 ; CHECK: liveins: $z0_z1_z2
63 ; CHECK: $z3 = ORR_ZZZ $z2, $z2
64 ; CHECK: $z2 = ORR_ZZZ $z1, $z1
65 ; CHECK: $z1 = ORR_ZZZ $z0, $z0
66 ; CHECK: $z0 = ORR_ZZZ $z1, $z1
67 ; CHECK: $z1 = ORR_ZZZ $z2, $z2
68 ; CHECK: $z2 = ORR_ZZZ $z3, $z3
70 $z1_z2_z3 = COPY $z0_z1_z2
71 $z0_z1_z2 = COPY $z1_z2_z3
78 tracksRegLiveness: true
80 - { reg: '$z0_z1_z2_z3' }
86 ; CHECK-LABEL: name: copy_zpr4
87 ; CHECK: liveins: $z0_z1_z2_z3
88 ; CHECK: $z4 = ORR_ZZZ $z3, $z3
89 ; CHECK: $z3 = ORR_ZZZ $z2, $z2
90 ; CHECK: $z2 = ORR_ZZZ $z1, $z1
91 ; CHECK: $z1 = ORR_ZZZ $z0, $z0
92 ; CHECK: $z0 = ORR_ZZZ $z1, $z1
93 ; CHECK: $z1 = ORR_ZZZ $z2, $z2
94 ; CHECK: $z2 = ORR_ZZZ $z3, $z3
95 ; CHECK: $z3 = ORR_ZZZ $z4, $z4
97 $z1_z2_z3_z4 = COPY $z0_z1_z2_z3
98 $z0_z1_z2_z3 = COPY $z1_z2_z3_z4
103 name: copy_zpr4strided
105 tracksRegLiveness: true
107 - { reg: '$z0_z1_z2_z3' }
112 liveins: $z0_z1_z2_z3
113 ; CHECK-LABEL: name: copy_zpr4
114 ; CHECK: liveins: $z0_z1_z2_z3
115 ; CHECK: $z12 = ORR_ZZZ $z3, $z3
116 ; CHECK: $z8 = ORR_ZZZ $z2, $z2
117 ; CHECK: $z4 = ORR_ZZZ $z1, $z1
118 ; CHECK: $z0 = ORR_ZZZ $z0, $z0
119 ; CHECK: $z3 = ORR_ZZZ $z12, $z12
120 ; CHECK: $z2 = ORR_ZZZ $z8, $z8
121 ; CHECK: $z1 = ORR_ZZZ $z4, $z4
122 ; CHECK: $z0 = ORR_ZZZ $z0, $z0
123 ; CHECK: RET_ReallyLR
124 $z0_z4_z8_z12 = COPY $z0_z1_z2_z3
125 $z0_z1_z2_z3 = COPY $z0_z4_z8_z12