1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -mcpu=mips32r5 -mattr=msa,+fp64 -mattr=nan2008 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=P5600
5 define void @load_store_v16i8(ptr %a, ptr %b) { entry: ret void }
6 define void @load_store_v8i16(ptr %a, ptr %b) { entry: ret void }
7 define void @load_store_v4i32(ptr %a, ptr %b) { entry: ret void }
8 define void @load_store_v2i64(ptr %a, ptr %b) { entry: ret void }
9 define void @load_store_v4f32(ptr %a, ptr %b) { entry: ret void }
10 define void @load_store_v2f64(ptr %a, ptr %b) { entry: ret void }
14 name: load_store_v16i8
18 tracksRegLiveness: true
23 ; P5600-LABEL: name: load_store_v16i8
24 ; P5600: liveins: $a0, $a1
25 ; P5600: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
26 ; P5600: [[COPY1:%[0-9]+]]:gpr32 = COPY $a1
27 ; P5600: [[LD_B:%[0-9]+]]:msa128b = LD_B [[COPY1]], 0 :: (load (<16 x s8>) from %ir.b)
28 ; P5600: ST_B [[LD_B]], [[COPY]], 0 :: (store (<16 x s8>) into %ir.a)
30 %0:gprb(p0) = COPY $a0
31 %1:gprb(p0) = COPY $a1
32 %2:fprb(<16 x s8>) = G_LOAD %1(p0) :: (load (<16 x s8>) from %ir.b)
33 G_STORE %2(<16 x s8>), %0(p0) :: (store (<16 x s8>) into %ir.a)
38 name: load_store_v8i16
42 tracksRegLiveness: true
47 ; P5600-LABEL: name: load_store_v8i16
48 ; P5600: liveins: $a0, $a1
49 ; P5600: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
50 ; P5600: [[COPY1:%[0-9]+]]:gpr32 = COPY $a1
51 ; P5600: [[LD_H:%[0-9]+]]:msa128h = LD_H [[COPY1]], 0 :: (load (<8 x s16>) from %ir.b)
52 ; P5600: ST_H [[LD_H]], [[COPY]], 0 :: (store (<8 x s16>) into %ir.a)
54 %0:gprb(p0) = COPY $a0
55 %1:gprb(p0) = COPY $a1
56 %2:fprb(<8 x s16>) = G_LOAD %1(p0) :: (load (<8 x s16>) from %ir.b)
57 G_STORE %2(<8 x s16>), %0(p0) :: (store (<8 x s16>) into %ir.a)
62 name: load_store_v4i32
66 tracksRegLiveness: true
71 ; P5600-LABEL: name: load_store_v4i32
72 ; P5600: liveins: $a0, $a1
73 ; P5600: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
74 ; P5600: [[COPY1:%[0-9]+]]:gpr32 = COPY $a1
75 ; P5600: [[LD_W:%[0-9]+]]:msa128w = LD_W [[COPY1]], 0 :: (load (<4 x s32>) from %ir.b)
76 ; P5600: ST_W [[LD_W]], [[COPY]], 0 :: (store (<4 x s32>) into %ir.a)
78 %0:gprb(p0) = COPY $a0
79 %1:gprb(p0) = COPY $a1
80 %2:fprb(<4 x s32>) = G_LOAD %1(p0) :: (load (<4 x s32>) from %ir.b)
81 G_STORE %2(<4 x s32>), %0(p0) :: (store (<4 x s32>) into %ir.a)
86 name: load_store_v2i64
90 tracksRegLiveness: true
95 ; P5600-LABEL: name: load_store_v2i64
96 ; P5600: liveins: $a0, $a1
97 ; P5600: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
98 ; P5600: [[COPY1:%[0-9]+]]:gpr32 = COPY $a1
99 ; P5600: [[LD_D:%[0-9]+]]:msa128d = LD_D [[COPY1]], 0 :: (load (<2 x s64>) from %ir.b)
100 ; P5600: ST_D [[LD_D]], [[COPY]], 0 :: (store (<2 x s64>) into %ir.a)
102 %0:gprb(p0) = COPY $a0
103 %1:gprb(p0) = COPY $a1
104 %2:fprb(<2 x s64>) = G_LOAD %1(p0) :: (load (<2 x s64>) from %ir.b)
105 G_STORE %2(<2 x s64>), %0(p0) :: (store (<2 x s64>) into %ir.a)
110 name: load_store_v4f32
113 regBankSelected: true
114 tracksRegLiveness: true
119 ; P5600-LABEL: name: load_store_v4f32
120 ; P5600: liveins: $a0, $a1
121 ; P5600: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
122 ; P5600: [[COPY1:%[0-9]+]]:gpr32 = COPY $a1
123 ; P5600: [[LD_W:%[0-9]+]]:msa128w = LD_W [[COPY1]], 0 :: (load (<4 x s32>) from %ir.b)
124 ; P5600: ST_W [[LD_W]], [[COPY]], 0 :: (store (<4 x s32>) into %ir.a)
126 %0:gprb(p0) = COPY $a0
127 %1:gprb(p0) = COPY $a1
128 %2:fprb(<4 x s32>) = G_LOAD %1(p0) :: (load (<4 x s32>) from %ir.b)
129 G_STORE %2(<4 x s32>), %0(p0) :: (store (<4 x s32>) into %ir.a)
134 name: load_store_v2f64
137 regBankSelected: true
138 tracksRegLiveness: true
143 ; P5600-LABEL: name: load_store_v2f64
144 ; P5600: liveins: $a0, $a1
145 ; P5600: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
146 ; P5600: [[COPY1:%[0-9]+]]:gpr32 = COPY $a1
147 ; P5600: [[LD_D:%[0-9]+]]:msa128d = LD_D [[COPY1]], 0 :: (load (<2 x s64>) from %ir.b)
148 ; P5600: ST_D [[LD_D]], [[COPY]], 0 :: (store (<2 x s64>) into %ir.a)
150 %0:gprb(p0) = COPY $a0
151 %1:gprb(p0) = COPY $a1
152 %2:fprb(<2 x s64>) = G_LOAD %1(p0) :: (load (<2 x s64>) from %ir.b)
153 G_STORE %2(<2 x s64>), %0(p0) :: (store (<2 x s64>) into %ir.a)