1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -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_s32
15 ; CHECK: liveins: $x10
17 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY $x10
18 ; CHECK-NEXT: [[SITOFP:%[0-9]+]]:fprb(s32) = G_SITOFP [[COPY]](s32)
19 ; CHECK-NEXT: $f10_f = COPY [[SITOFP]](s32)
20 ; CHECK-NEXT: PseudoRET implicit $f10_f
22 %1:_(s32) = G_SITOFP %0(s32)
24 PseudoRET implicit $f10_f
30 tracksRegLiveness: true
35 ; CHECK-LABEL: name: uitofp_s32_s32
36 ; CHECK: liveins: $x10
38 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY $x10
39 ; CHECK-NEXT: [[UITOFP:%[0-9]+]]:fprb(s32) = G_UITOFP [[COPY]](s32)
40 ; CHECK-NEXT: $f10_f = COPY [[UITOFP]](s32)
41 ; CHECK-NEXT: PseudoRET implicit $f10_f
43 %1:_(s32) = G_UITOFP %0(s32)
45 PseudoRET implicit $f10_f
51 tracksRegLiveness: true
56 ; CHECK-LABEL: name: sitofp_s64_s32
57 ; CHECK: liveins: $x10
59 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY $x10
60 ; CHECK-NEXT: [[SITOFP:%[0-9]+]]:fprb(s64) = G_SITOFP [[COPY]](s32)
61 ; CHECK-NEXT: $f10_d = COPY [[SITOFP]](s64)
62 ; CHECK-NEXT: PseudoRET implicit $f10_d
64 %1:_(s64) = G_SITOFP %0(s32)
66 PseudoRET implicit $f10_d
72 tracksRegLiveness: true
77 ; CHECK-LABEL: name: uitofp_s64_s32
78 ; CHECK: liveins: $x10
80 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY $x10
81 ; CHECK-NEXT: [[UITOFP:%[0-9]+]]:fprb(s64) = G_UITOFP [[COPY]](s32)
82 ; CHECK-NEXT: $f10_d = COPY [[UITOFP]](s64)
83 ; CHECK-NEXT: PseudoRET implicit $f10_d
85 %1:_(s64) = G_UITOFP %0(s32)
87 PseudoRET implicit $f10_d