1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
5 define void @store_i32(i32* %ptr) { entry: ret void }
6 define void @store_i64(i64* %ptr) { entry: ret void }
7 define void @store_float(float* %ptr) { entry: ret void }
8 define void @store_double(double* %ptr) { entry: ret void }
15 tracksRegLiveness: true
20 ; MIPS32-LABEL: name: store_i32
21 ; MIPS32: liveins: $a0, $a1
22 ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $a0
23 ; MIPS32: [[COPY1:%[0-9]+]]:_(p0) = COPY $a1
24 ; MIPS32: G_STORE [[COPY]](s32), [[COPY1]](p0) :: (store 4 into %ir.ptr)
28 G_STORE %0(s32), %1(p0) :: (store 4 into %ir.ptr)
36 tracksRegLiveness: true
39 liveins: $a0, $a1, $a2
41 ; MIPS32-LABEL: name: store_i64
42 ; MIPS32: liveins: $a0, $a1, $a2
43 ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $a0
44 ; MIPS32: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1
45 ; MIPS32: [[MV:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[COPY]](s32), [[COPY1]](s32)
46 ; MIPS32: [[COPY2:%[0-9]+]]:_(p0) = COPY $a2
47 ; MIPS32: G_STORE [[MV]](s64), [[COPY2]](p0) :: (store 8 into %ir.ptr)
51 %0:_(s64) = G_MERGE_VALUES %2(s32), %3(s32)
53 G_STORE %0(s64), %1(p0) :: (store 8 into %ir.ptr)
61 tracksRegLiveness: true
66 ; MIPS32-LABEL: name: store_float
67 ; MIPS32: liveins: $a1, $f12
68 ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $f12
69 ; MIPS32: [[COPY1:%[0-9]+]]:_(p0) = COPY $a1
70 ; MIPS32: G_STORE [[COPY]](s32), [[COPY1]](p0) :: (store 4 into %ir.ptr)
74 G_STORE %0(s32), %1(p0) :: (store 4 into %ir.ptr)
82 tracksRegLiveness: true
87 ; MIPS32-LABEL: name: store_double
88 ; MIPS32: liveins: $a2, $d6
89 ; MIPS32: [[COPY:%[0-9]+]]:_(s64) = COPY $d6
90 ; MIPS32: [[COPY1:%[0-9]+]]:_(p0) = COPY $a2
91 ; MIPS32: G_STORE [[COPY]](s64), [[COPY1]](p0) :: (store 8 into %ir.ptr)
95 G_STORE %0(s64), %1(p0) :: (store 8 into %ir.ptr)