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
6 tracksRegLiveness: true
11 ; MIPS32-LABEL: name: load_i32
12 ; MIPS32: liveins: $a0
14 ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $a0
15 ; MIPS32-NEXT: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[COPY]](p0) :: (load (s32))
16 ; MIPS32-NEXT: $v0 = COPY [[LOAD]](s32)
17 ; MIPS32-NEXT: RetRA implicit $v0
19 %1:_(s32) = G_LOAD %0(p0) :: (load (s32))
27 tracksRegLiveness: true
32 ; MIPS32-LABEL: name: load_i64
33 ; MIPS32: liveins: $a0
35 ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $a0
36 ; MIPS32-NEXT: [[LOAD:%[0-9]+]]:_(s64) = G_LOAD [[COPY]](p0) :: (load (s64))
37 ; MIPS32-NEXT: [[UV:%[0-9]+]]:_(s32), [[UV1:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[LOAD]](s64)
38 ; MIPS32-NEXT: $v0 = COPY [[UV]](s32)
39 ; MIPS32-NEXT: $v1 = COPY [[UV1]](s32)
40 ; MIPS32-NEXT: RetRA implicit $v0, implicit $v1
42 %1:_(s64) = G_LOAD %0(p0) :: (load (s64))
43 %2:_(s32), %3:_(s32) = G_UNMERGE_VALUES %1(s64)
46 RetRA implicit $v0, implicit $v1
52 tracksRegLiveness: true
57 ; MIPS32-LABEL: name: load_float
58 ; MIPS32: liveins: $a0
60 ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $a0
61 ; MIPS32-NEXT: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[COPY]](p0) :: (load (s32))
62 ; MIPS32-NEXT: $f0 = COPY [[LOAD]](s32)
63 ; MIPS32-NEXT: RetRA implicit $f0
65 %1:_(s32) = G_LOAD %0(p0) :: (load (s32))
73 tracksRegLiveness: true
78 ; MIPS32-LABEL: name: load_double
79 ; MIPS32: liveins: $a0
81 ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $a0
82 ; MIPS32-NEXT: [[LOAD:%[0-9]+]]:_(s64) = G_LOAD [[COPY]](p0) :: (load (s64))
83 ; MIPS32-NEXT: $d0 = COPY [[LOAD]](s64)
84 ; MIPS32-NEXT: RetRA implicit $d0
86 %1:_(s64) = G_LOAD %0(p0) :: (load (s64))