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=FP32
3 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -mattr=+fp64,+mips32r2 -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=FP64
6 define void @fpext() {entry: ret void}
7 define void @fptrunc() {entry: ret void}
13 tracksRegLiveness: true
18 ; FP32-LABEL: name: fpext
20 ; FP32: [[COPY:%[0-9]+]]:_(s32) = COPY $f12
21 ; FP32: [[FPEXT:%[0-9]+]]:_(s64) = G_FPEXT [[COPY]](s32)
22 ; FP32: $d0 = COPY [[FPEXT]](s64)
23 ; FP32: RetRA implicit $d0
24 ; FP64-LABEL: name: fpext
26 ; FP64: [[COPY:%[0-9]+]]:_(s32) = COPY $f12
27 ; FP64: [[FPEXT:%[0-9]+]]:_(s64) = G_FPEXT [[COPY]](s32)
28 ; FP64: $d0 = COPY [[FPEXT]](s64)
29 ; FP64: RetRA implicit $d0
31 %1:_(s64) = G_FPEXT %0(s32)
39 tracksRegLiveness: true
44 ; FP32-LABEL: name: fptrunc
46 ; FP32: [[COPY:%[0-9]+]]:_(s64) = COPY $d6
47 ; FP32: [[FPTRUNC:%[0-9]+]]:_(s32) = G_FPTRUNC [[COPY]](s64)
48 ; FP32: $f0 = COPY [[FPTRUNC]](s32)
49 ; FP32: RetRA implicit $f0
50 ; FP64-LABEL: name: fptrunc
52 ; FP64: [[COPY:%[0-9]+]]:_(s64) = COPY $d6
53 ; FP64: [[FPTRUNC:%[0-9]+]]:_(s32) = G_FPTRUNC [[COPY]](s64)
54 ; FP64: $f0 = COPY [[FPTRUNC]](s32)
55 ; FP64: RetRA implicit $f0
57 %1:_(s32) = G_FPTRUNC %0(s64)