1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -march=aarch64 -o - -run-pass=legalizer %s | FileCheck %s
6 tracksRegLiveness: true
11 ; CHECK-LABEL: name: load_v4s32
12 ; CHECK: liveins: $x0, $x1
13 ; CHECK: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
14 ; CHECK: [[COPY1:%[0-9]+]]:_(p0) = COPY $x1
15 ; CHECK: [[LOAD:%[0-9]+]]:_(<2 x s32>) = G_LOAD [[COPY]](p0) :: (load 8, align 16)
16 ; CHECK: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 8
17 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[COPY]], [[C]](s64)
18 ; CHECK: [[LOAD1:%[0-9]+]]:_(<2 x s32>) = G_LOAD [[GEP]](p0) :: (load 8)
19 ; CHECK: G_STORE [[LOAD]](<2 x s32>), [[COPY1]](p0) :: (store 8, align 16)
20 ; CHECK: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 8
21 ; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[COPY1]], [[C1]](s64)
22 ; CHECK: G_STORE [[LOAD1]](<2 x s32>), [[GEP1]](p0) :: (store 8)
25 %2:_(<4 x s32>) = G_LOAD %0(p0) :: (load 16)
26 G_STORE %2(<4 x s32>), %1(p0) :: (store 16)
32 tracksRegLiveness: true
37 ; CHECK-LABEL: name: load_v2s64
38 ; CHECK: liveins: $x0, $x1
39 ; CHECK: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
40 ; CHECK: [[COPY1:%[0-9]+]]:_(p0) = COPY $x1
41 ; CHECK: [[LOAD:%[0-9]+]]:_(s64) = G_LOAD [[COPY]](p0) :: (load 8, align 16)
42 ; CHECK: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 8
43 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[COPY]], [[C]](s64)
44 ; CHECK: [[LOAD1:%[0-9]+]]:_(s64) = G_LOAD [[GEP]](p0) :: (load 8)
45 ; CHECK: G_STORE [[LOAD]](s64), [[COPY1]](p0) :: (store 8, align 16)
46 ; CHECK: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 8
47 ; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[COPY1]], [[C1]](s64)
48 ; CHECK: G_STORE [[LOAD1]](s64), [[GEP1]](p0) :: (store 8)
51 %2:_(<2 x s64>) = G_LOAD %0(p0) :: (load 16)
52 G_STORE %2(<2 x s64>), %1(p0) :: (store 16)