105 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS323--- |4 5 declare void @f_i32(i32)6 define void @g_i32() {entry: ret void}7 8 declare void @f_i64(i64)9 define void @g_i64() {entry: ret void}10 11 declare void @f_float(float)12 define void @g_float() {entry: ret void}13 14 declare void @f_double(double)15 define void @g_double() {entry: ret void}16 17...18---19name: g_i3220alignment: 221tracksRegLiveness: true22body: |23 bb.1.entry:24 ; MIPS32-LABEL: name: g_i3225 ; MIPS32: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF26 ; MIPS32-NEXT: ADJCALLSTACKDOWN 16, 0, implicit-def $sp, implicit $sp27 ; MIPS32-NEXT: $a0 = COPY [[DEF]](s32)28 ; MIPS32-NEXT: JAL @f_i32, csr_o32, implicit-def $ra, implicit-def $sp, implicit $a029 ; MIPS32-NEXT: ADJCALLSTACKUP 16, 0, implicit-def $sp, implicit $sp30 ; MIPS32-NEXT: RetRA31 %0:_(s32) = G_IMPLICIT_DEF32 ADJCALLSTACKDOWN 16, 0, implicit-def $sp, implicit $sp33 $a0 = COPY %0(s32)34 JAL @f_i32, csr_o32, implicit-def $ra, implicit-def $sp, implicit $a035 ADJCALLSTACKUP 16, 0, implicit-def $sp, implicit $sp36 RetRA37 38...39---40name: g_i6441alignment: 242tracksRegLiveness: true43body: |44 bb.1.entry:45 ; MIPS32-LABEL: name: g_i6446 ; MIPS32: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF47 ; MIPS32-NEXT: ADJCALLSTACKDOWN 16, 0, implicit-def $sp, implicit $sp48 ; MIPS32-NEXT: $a0 = COPY [[DEF]](s32)49 ; MIPS32-NEXT: $a1 = COPY [[DEF]](s32)50 ; MIPS32-NEXT: JAL @f_i64, csr_o32, implicit-def $ra, implicit-def $sp, implicit $a0, implicit $a151 ; MIPS32-NEXT: ADJCALLSTACKUP 16, 0, implicit-def $sp, implicit $sp52 ; MIPS32-NEXT: RetRA53 %0:_(s64) = G_IMPLICIT_DEF54 ADJCALLSTACKDOWN 16, 0, implicit-def $sp, implicit $sp55 %1:_(s32), %2:_(s32) = G_UNMERGE_VALUES %0(s64)56 $a0 = COPY %1(s32)57 $a1 = COPY %2(s32)58 JAL @f_i64, csr_o32, implicit-def $ra, implicit-def $sp, implicit $a0, implicit $a159 ADJCALLSTACKUP 16, 0, implicit-def $sp, implicit $sp60 RetRA61 62...63---64name: g_float65alignment: 266tracksRegLiveness: true67body: |68 bb.1.entry:69 ; MIPS32-LABEL: name: g_float70 ; MIPS32: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF71 ; MIPS32-NEXT: ADJCALLSTACKDOWN 16, 0, implicit-def $sp, implicit $sp72 ; MIPS32-NEXT: $f12 = COPY [[DEF]](s32)73 ; MIPS32-NEXT: JAL @f_float, csr_o32, implicit-def $ra, implicit-def $sp, implicit $f1274 ; MIPS32-NEXT: ADJCALLSTACKUP 16, 0, implicit-def $sp, implicit $sp75 ; MIPS32-NEXT: RetRA76 %0:_(s32) = G_IMPLICIT_DEF77 ADJCALLSTACKDOWN 16, 0, implicit-def $sp, implicit $sp78 $f12 = COPY %0(s32)79 JAL @f_float, csr_o32, implicit-def $ra, implicit-def $sp, implicit $f1280 ADJCALLSTACKUP 16, 0, implicit-def $sp, implicit $sp81 RetRA82 83...84---85name: g_double86alignment: 287tracksRegLiveness: true88body: |89 bb.1.entry:90 ; MIPS32-LABEL: name: g_double91 ; MIPS32: [[DEF:%[0-9]+]]:_(s64) = G_IMPLICIT_DEF92 ; MIPS32-NEXT: ADJCALLSTACKDOWN 16, 0, implicit-def $sp, implicit $sp93 ; MIPS32-NEXT: $d6 = COPY [[DEF]](s64)94 ; MIPS32-NEXT: JAL @f_double, csr_o32, implicit-def $ra, implicit-def $sp, implicit $d695 ; MIPS32-NEXT: ADJCALLSTACKUP 16, 0, implicit-def $sp, implicit $sp96 ; MIPS32-NEXT: RetRA97 %0:_(s64) = G_IMPLICIT_DEF98 ADJCALLSTACKDOWN 16, 0, implicit-def $sp, implicit $sp99 $d6 = COPY %0(s64)100 JAL @f_double, csr_o32, implicit-def $ra, implicit-def $sp, implicit $d6101 ADJCALLSTACKUP 16, 0, implicit-def $sp, implicit $sp102 RetRA103 104...105