1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=FP32
3 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -mattr=+fp64,+mips32r2 -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=FP64
6 define void @i32tof32() {entry: ret void}
7 define void @i32tof64() {entry: ret void}
14 tracksRegLiveness: true
19 ; FP32-LABEL: name: i32tof32
21 ; FP32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
22 ; FP32: [[SITOFP:%[0-9]+]]:fprb(s32) = G_SITOFP [[COPY]](s32)
23 ; FP32: $f0 = COPY [[SITOFP]](s32)
24 ; FP32: RetRA implicit $f0
25 ; FP64-LABEL: name: i32tof32
27 ; FP64: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
28 ; FP64: [[SITOFP:%[0-9]+]]:fprb(s32) = G_SITOFP [[COPY]](s32)
29 ; FP64: $f0 = COPY [[SITOFP]](s32)
30 ; FP64: RetRA implicit $f0
32 %1:_(s32) = G_SITOFP %0(s32)
41 tracksRegLiveness: true
46 ; FP32-LABEL: name: i32tof64
48 ; FP32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
49 ; FP32: [[SITOFP:%[0-9]+]]:fprb(s64) = G_SITOFP [[COPY]](s32)
50 ; FP32: $d0 = COPY [[SITOFP]](s64)
51 ; FP32: RetRA implicit $d0
52 ; FP64-LABEL: name: i32tof64
54 ; FP64: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
55 ; FP64: [[SITOFP:%[0-9]+]]:fprb(s64) = G_SITOFP [[COPY]](s32)
56 ; FP64: $d0 = COPY [[SITOFP]](s64)
57 ; FP64: RetRA implicit $d0
59 %1:_(s64) = G_SITOFP %0(s32)