1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv64 -mattr=+d -run-pass=regbankselect \
3 # RUN: -simplify-mir -verify-machineinstrs %s \
4 # RUN: -o - | FileCheck %s
9 tracksRegLiveness: true
14 ; CHECK-LABEL: name: sitofp_s32_s64
15 ; CHECK: liveins: $x10
17 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gprb(s64) = COPY $x10
18 ; CHECK-NEXT: [[SITOFP:%[0-9]+]]:fprb(s32) = G_SITOFP [[COPY]](s64)
19 ; CHECK-NEXT: $f10_f = COPY [[SITOFP]](s32)
20 ; CHECK-NEXT: PseudoRET implicit $f10_f
22 %1:_(s32) = G_SITOFP %0(s64)
24 PseudoRET implicit $f10_f
30 tracksRegLiveness: true
35 ; CHECK-LABEL: name: uitofp_s32_s64
36 ; CHECK: liveins: $x10
38 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gprb(s64) = COPY $x10
39 ; CHECK-NEXT: [[UITOFP:%[0-9]+]]:fprb(s32) = G_UITOFP [[COPY]](s64)
40 ; CHECK-NEXT: $f10_f = COPY [[UITOFP]](s32)
41 ; CHECK-NEXT: PseudoRET implicit $f10_f
43 %1:_(s32) = G_UITOFP %0(s64)
45 PseudoRET implicit $f10_f
51 tracksRegLiveness: true
56 ; CHECK-LABEL: name: sitofp_s64_s64
57 ; CHECK: liveins: $x10
59 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gprb(s64) = COPY $x10
60 ; CHECK-NEXT: [[SITOFP:%[0-9]+]]:fprb(s64) = G_SITOFP [[COPY]](s64)
61 ; CHECK-NEXT: $f10_d = COPY [[SITOFP]](s64)
62 ; CHECK-NEXT: PseudoRET implicit $f10_d
64 %1:_(s64) = G_SITOFP %0(s64)
66 PseudoRET implicit $f10_d
72 tracksRegLiveness: true
77 ; CHECK-LABEL: name: uitofp_s64_s64
78 ; CHECK: liveins: $x10
80 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gprb(s64) = COPY $x10
81 ; CHECK-NEXT: [[UITOFP:%[0-9]+]]:fprb(s64) = G_UITOFP [[COPY]](s64)
82 ; CHECK-NEXT: $f10_d = COPY [[UITOFP]](s64)
83 ; CHECK-NEXT: PseudoRET implicit $f10_d
85 %1:_(s64) = G_UITOFP %0(s64)
87 PseudoRET implicit $f10_d