1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64-- -O0 -run-pass=instruction-select -verify-machineinstrs %s -global-isel-abort=1 -o - | FileCheck %s
4 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
5 target triple = "aarch64"
7 define void @store_v2p0(<2 x i8*> %v, <2 x i8*>* %ptr) {
8 store <2 x i8*> %v, <2 x i8*>* %ptr
12 define <2 x i8*> @load_v2p0(<2 x i8*>* %ptr) {
13 %v = load <2 x i8*>, <2 x i8*>* %ptr
23 tracksRegLiveness: true
25 - { id: 0, class: fpr }
26 - { id: 1, class: gpr }
27 - { id: 2, class: fpr }
28 machineFunctionInfo: {}
33 ; CHECK-LABEL: name: store_v2p0
34 ; CHECK: liveins: $q0, $x0
35 ; CHECK: [[COPY:%[0-9]+]]:fpr128 = COPY $q0
36 ; CHECK: [[COPY1:%[0-9]+]]:gpr64sp = COPY $x0
37 ; CHECK: STRQui [[COPY]], [[COPY1]], 0 :: (store (<2 x s64>) into %ir.ptr)
39 %0:fpr(<2 x p0>) = COPY $q0
41 %2:fpr(<2 x s64>) = G_BITCAST %0(<2 x p0>)
42 G_STORE %2(<2 x s64>), %1(p0) :: (store (<2 x s64>) into %ir.ptr)
51 tracksRegLiveness: true
53 - { id: 0, class: gpr }
54 - { id: 1, class: fpr }
55 - { id: 2, class: fpr }
56 machineFunctionInfo: {}
61 ; CHECK-LABEL: name: load_v2p0
63 ; CHECK: [[COPY:%[0-9]+]]:gpr64sp = COPY $x0
64 ; CHECK: [[LDRQui:%[0-9]+]]:fpr128 = LDRQui [[COPY]], 0 :: (load (<2 x s64>) from %ir.ptr)
65 ; CHECK: $q0 = COPY [[LDRQui]]
66 ; CHECK: RET_ReallyLR implicit $q0
68 %2:fpr(<2 x s64>) = G_LOAD %0(p0) :: (load (<2 x s64>) from %ir.ptr)
69 %1:fpr(<2 x p0>) = G_BITCAST %2(<2 x s64>)
70 $q0 = COPY %1(<2 x p0>)
71 RET_ReallyLR implicit $q0