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 @fpext() {entry: ret void}
7 define void @fptrunc() {entry: ret void}
15 tracksRegLiveness: true
20 ; FP32-LABEL: name: fpext
22 ; FP32: [[COPY:%[0-9]+]]:fgr32 = COPY $f12
23 ; FP32: [[CVT_D32_S:%[0-9]+]]:afgr64 = CVT_D32_S [[COPY]]
24 ; FP32: $d0 = COPY [[CVT_D32_S]]
25 ; FP32: RetRA implicit $d0
26 ; FP64-LABEL: name: fpext
28 ; FP64: [[COPY:%[0-9]+]]:fgr32 = COPY $f12
29 ; FP64: [[CVT_D64_S:%[0-9]+]]:fgr64 = CVT_D64_S [[COPY]]
30 ; FP64: $d0 = COPY [[CVT_D64_S]]
31 ; FP64: RetRA implicit $d0
32 %0:fprb(s32) = COPY $f12
33 %1:fprb(s64) = G_FPEXT %0(s32)
43 tracksRegLiveness: true
48 ; FP32-LABEL: name: fptrunc
50 ; FP32: [[COPY:%[0-9]+]]:afgr64 = COPY $d6
51 ; FP32: [[CVT_S_D32_:%[0-9]+]]:fgr32 = CVT_S_D32 [[COPY]]
52 ; FP32: $f0 = COPY [[CVT_S_D32_]]
53 ; FP32: RetRA implicit $f0
54 ; FP64-LABEL: name: fptrunc
56 ; FP64: [[COPY:%[0-9]+]]:fgr64 = COPY $d6
57 ; FP64: [[CVT_S_D64_:%[0-9]+]]:fgr32 = CVT_S_D64 [[COPY]]
58 ; FP64: $f0 = COPY [[CVT_S_D64_]]
59 ; FP64: RetRA implicit $f0
60 %0:fprb(s64) = COPY $d6
61 %1:fprb(s32) = G_FPTRUNC %0(s64)