[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / CodeGen / AArch64 / GlobalISel / legalize-inttoptr.mir
blobcde5889a946b1b527c26ee3e17470c9dea4072f4
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
4 ...
5 ---
6 name:            p0_s64_legal
7 tracksRegLiveness: true
8 body:             |
9   bb.0:
10     liveins: $q0, $x0
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
21 ...
22 ---
23 name:            v2s64_to_v2p0_legal
24 tracksRegLiveness: true
25 body:             |
26   bb.0:
27     liveins: $q0, $x0
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
44 ...