1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -mattr=+zfh -run-pass=instruction-select \
3 # RUN: -simplify-mir -verify-machineinstrs %s -o - | FileCheck %s
9 tracksRegLiveness: true
14 ; CHECK-LABEL: name: sitofp_s16_s32
15 ; CHECK: liveins: $x10
17 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr = COPY $x10
18 ; CHECK-NEXT: [[FCVT_H_W:%[0-9]+]]:fpr16 = nofpexcept FCVT_H_W [[COPY]], 7
19 ; CHECK-NEXT: $f10_h = COPY [[FCVT_H_W]]
20 ; CHECK-NEXT: PseudoRET implicit $f10_h
21 %0:gprb(s32) = COPY $x10
22 %1:fprb(s16) = G_SITOFP %0(s32)
24 PseudoRET implicit $f10_h
31 tracksRegLiveness: true
36 ; CHECK-LABEL: name: uitofp_s16_s32
37 ; CHECK: liveins: $x10
39 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr = COPY $x10
40 ; CHECK-NEXT: [[FCVT_H_WU:%[0-9]+]]:fpr16 = nofpexcept FCVT_H_WU [[COPY]], 7
41 ; CHECK-NEXT: $f10_h = COPY [[FCVT_H_WU]]
42 ; CHECK-NEXT: PseudoRET implicit $f10_h
43 %0:gprb(s32) = COPY $x10
44 %1:fprb(s16) = G_UITOFP %0(s32)
46 PseudoRET implicit $f10_h