1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple aarch64 -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s
7 tracksRegLiveness: true
11 ; CHECK-LABEL: name: p0_s64_legal
12 ; CHECK: liveins: $q0, $x0
13 ; CHECK: %copy:_(s64) = COPY $x0
14 ; CHECK: %inttoptr:_(p0) = G_INTTOPTR %copy(s64)
15 ; CHECK: $x0 = COPY %inttoptr(p0)
16 ; CHECK: RET_ReallyLR implicit $x0
17 %copy:_(s64) = COPY $x0
18 %inttoptr:_(p0) = G_INTTOPTR %copy(s64)
19 $x0 = COPY %inttoptr(p0)
20 RET_ReallyLR implicit $x0
23 name: v2s64_to_v2p0_legal
24 tracksRegLiveness: true
29 ; CHECK-LABEL: name: v2s64_to_v2p0_legal
30 ; CHECK: liveins: $q0, $x0
31 ; CHECK: %copy:_(<2 x s64>) = COPY $q0
32 ; CHECK: %idx:_(s64) = G_CONSTANT i64 0
33 ; CHECK: %inttoptr:_(<2 x p0>) = G_INTTOPTR %copy(<2 x s64>)
34 ; CHECK: %extract:_(p0) = G_EXTRACT_VECTOR_ELT %inttoptr(<2 x p0>), %idx(s64)
35 ; CHECK: $x0 = COPY %extract(p0)
36 ; CHECK: RET_ReallyLR implicit $x0
37 %copy:_(<2 x s64>) = COPY $q0
38 %idx:_(s64) = G_CONSTANT i64 0
39 %inttoptr:_(<2 x p0>) = G_INTTOPTR %copy(<2 x s64>)
40 %extract:_(p0) = G_EXTRACT_VECTOR_ELT %inttoptr(<2 x p0>), %idx(s64)
41 $x0 = COPY %extract(p0)
42 RET_ReallyLR implicit $x0