1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -mattr=+zfh -run-pass=regbankselect \
3 # RUN: -simplify-mir -verify-machineinstrs %s \
4 # RUN: -o - | FileCheck %s
9 tracksRegLiveness: true
14 ; CHECK-LABEL: name: fptosi_s32_s16
15 ; CHECK: liveins: $f10_h
17 ; CHECK-NEXT: [[COPY:%[0-9]+]]:fprb(s16) = COPY $f10_h
18 ; CHECK-NEXT: [[FPTOSI:%[0-9]+]]:gprb(s32) = G_FPTOSI [[COPY]](s16)
19 ; CHECK-NEXT: $x10 = COPY [[FPTOSI]](s32)
20 ; CHECK-NEXT: PseudoRET implicit $x10
21 %0:_(s16) = COPY $f10_h
22 %1:_(s32) = G_FPTOSI %0(s16)
24 PseudoRET implicit $x10
30 tracksRegLiveness: true
35 ; CHECK-LABEL: name: fptoui_s32_s16
36 ; CHECK: liveins: $f10_h
38 ; CHECK-NEXT: [[COPY:%[0-9]+]]:fprb(s16) = COPY $f10_h
39 ; CHECK-NEXT: [[FPTOUI:%[0-9]+]]:gprb(s32) = G_FPTOUI [[COPY]](s16)
40 ; CHECK-NEXT: $x10 = COPY [[FPTOUI]](s32)
41 ; CHECK-NEXT: PseudoRET implicit $x10
42 %0:_(s16) = COPY $f10_h
43 %1:_(s32) = G_FPTOUI %0(s16)
45 PseudoRET implicit $x10