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