1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=FP32
3 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -mattr=+fp64,+mips32r2 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=FP64
6 define void @i32tof32() {entry: ret void}
7 define void @i32tof64() {entry: ret void}
15 tracksRegLiveness: true
20 ; FP32-LABEL: name: i32tof32
22 ; FP32: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
23 ; FP32: [[PseudoCVT_S_W:%[0-9]+]]:fgr32 = PseudoCVT_S_W [[COPY]]
24 ; FP32: $f0 = COPY [[PseudoCVT_S_W]]
25 ; FP32: RetRA implicit $f0
26 ; FP64-LABEL: name: i32tof32
28 ; FP64: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
29 ; FP64: [[PseudoCVT_S_W:%[0-9]+]]:fgr32 = PseudoCVT_S_W [[COPY]]
30 ; FP64: $f0 = COPY [[PseudoCVT_S_W]]
31 ; FP64: RetRA implicit $f0
32 %0:gprb(s32) = COPY $a0
33 %1:fprb(s32) = G_SITOFP %0(s32)
43 tracksRegLiveness: true
48 ; FP32-LABEL: name: i32tof64
50 ; FP32: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
51 ; FP32: [[PseudoCVT_D32_W:%[0-9]+]]:afgr64 = PseudoCVT_D32_W [[COPY]]
52 ; FP32: $d0 = COPY [[PseudoCVT_D32_W]]
53 ; FP32: RetRA implicit $d0
54 ; FP64-LABEL: name: i32tof64
56 ; FP64: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
57 ; FP64: [[PseudoCVT_D64_W:%[0-9]+]]:fgr64 = PseudoCVT_D64_W [[COPY]]
58 ; FP64: $d0 = COPY [[PseudoCVT_D64_W]]
59 ; FP64: RetRA implicit $d0
60 %0:gprb(s32) = COPY $a0
61 %1:fprb(s64) = G_SITOFP %0(s32)