forked from OSchip/llvm-project
55 lines
2.1 KiB
YAML
55 lines
2.1 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -O0 -march=aarch64 -o - -run-pass=legalizer %s | FileCheck %s
|
|
---
|
|
name: load_v4s32
|
|
legalized: false
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.1:
|
|
liveins: $x0, $x1
|
|
|
|
; CHECK-LABEL: name: load_v4s32
|
|
; CHECK: liveins: $x0, $x1
|
|
; CHECK: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(p0) = COPY $x1
|
|
; CHECK: [[LOAD:%[0-9]+]]:_(<2 x s32>) = G_LOAD [[COPY]](p0) :: (load 8, align 16)
|
|
; CHECK: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 8
|
|
; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[COPY]], [[C]](s64)
|
|
; CHECK: [[LOAD1:%[0-9]+]]:_(<2 x s32>) = G_LOAD [[GEP]](p0) :: (load 8)
|
|
; CHECK: G_STORE [[LOAD]](<2 x s32>), [[COPY1]](p0) :: (store 8, align 16)
|
|
; CHECK: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 8
|
|
; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[COPY1]], [[C1]](s64)
|
|
; CHECK: G_STORE [[LOAD1]](<2 x s32>), [[GEP1]](p0) :: (store 8)
|
|
%0:_(p0) = COPY $x0
|
|
%1:_(p0) = COPY $x1
|
|
%2:_(<4 x s32>) = G_LOAD %0(p0) :: (load 16)
|
|
G_STORE %2(<4 x s32>), %1(p0) :: (store 16)
|
|
|
|
...
|
|
---
|
|
name: load_v2s64
|
|
legalized: false
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.1:
|
|
liveins: $x0, $x1
|
|
|
|
; CHECK-LABEL: name: load_v2s64
|
|
; CHECK: liveins: $x0, $x1
|
|
; CHECK: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(p0) = COPY $x1
|
|
; CHECK: [[LOAD:%[0-9]+]]:_(s64) = G_LOAD [[COPY]](p0) :: (load 8, align 16)
|
|
; CHECK: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 8
|
|
; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[COPY]], [[C]](s64)
|
|
; CHECK: [[LOAD1:%[0-9]+]]:_(s64) = G_LOAD [[GEP]](p0) :: (load 8)
|
|
; CHECK: G_STORE [[LOAD]](s64), [[COPY1]](p0) :: (store 8, align 16)
|
|
; CHECK: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 8
|
|
; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[COPY1]], [[C1]](s64)
|
|
; CHECK: G_STORE [[LOAD1]](s64), [[GEP1]](p0) :: (store 8)
|
|
%0:_(p0) = COPY $x0
|
|
%1:_(p0) = COPY $x1
|
|
%2:_(<2 x s64>) = G_LOAD %0(p0) :: (load 16)
|
|
G_STORE %2(<2 x s64>), %1(p0) :: (store 16)
|
|
|
|
...
|