1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -O0 -run-pass=legalizer %s -o - | FileCheck %s
3
4--- |
5  target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
6  target triple = "aarch64--"
7  define void @test_legalize_merge_v3s64() {
8    ret void
9  }
10...
11---
12name:            test_legalize_merge_v3s64
13registers:
14  - { id: 0, class: _ }
15  - { id: 1, class: _ }
16  - { id: 2, class: _ }
17  - { id: 3, class: _ }
18  - { id: 4, class: _ }
19  - { id: 5, class: _ }
20body: |
21  bb.0:
22    liveins: $w0
23    ; CHECK-LABEL: name: test_legalize_merge_v3s64
24    ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
25    ; CHECK: [[MV:%[0-9]+]]:_(<3 x s64>) = G_MERGE_VALUES [[COPY]](s64), [[COPY]](s64), [[COPY]](s64)
26    ; CHECK: $x0 = COPY [[COPY]](s64)
27    ; CHECK: $noreg = PATCHABLE_RET [[MV]](<3 x s64>)
28    %0(s64) = COPY $x0
29    %1(<3 x s64>) = G_MERGE_VALUES %0(s64), %0(s64), %0(s64)
30    %2(s64), %3(s64), %4(s64) = G_UNMERGE_VALUES %1(<3 x s64>)
31    $x0 = COPY %3(s64)
32    $noreg = PATCHABLE_RET %1(<3 x s64>)
33...
34