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: fptosi_s32_s32
15 ; CHECK: liveins: $f10_f
17 ; CHECK-NEXT: [[COPY:%[0-9]+]]:fprb(s32) = COPY $f10_f
18 ; CHECK-NEXT: [[FPTOSI:%[0-9]+]]:gprb(s32) = G_FPTOSI [[COPY]](s32)
19 ; CHECK-NEXT: $x10 = COPY [[FPTOSI]](s32)
20 ; CHECK-NEXT: PseudoRET implicit $x10
21 %0:_(s32) = COPY $f10_f
22 %1:_(s32) = G_FPTOSI %0(s32)
24 PseudoRET implicit $x10
30 tracksRegLiveness: true
35 ; CHECK-LABEL: name: fptoui_s32_s32
36 ; CHECK: liveins: $f10_f
38 ; CHECK-NEXT: [[COPY:%[0-9]+]]:fprb(s32) = COPY $f10_f
39 ; CHECK-NEXT: [[FPTOUI:%[0-9]+]]:gprb(s32) = G_FPTOUI [[COPY]](s32)
40 ; CHECK-NEXT: $x10 = COPY [[FPTOUI]](s32)
41 ; CHECK-NEXT: PseudoRET implicit $x10
42 %0:_(s32) = COPY $f10_f
43 %1:_(s32) = G_FPTOUI %0(s32)
45 PseudoRET implicit $x10
51 tracksRegLiveness: true
56 ; CHECK-LABEL: name: fptosi_s32_s64
57 ; CHECK: liveins: $f10_d
59 ; CHECK-NEXT: [[COPY:%[0-9]+]]:fprb(s64) = COPY $f10_d
60 ; CHECK-NEXT: [[FPTOSI:%[0-9]+]]:gprb(s32) = G_FPTOSI [[COPY]](s64)
61 ; CHECK-NEXT: $x10 = COPY [[FPTOSI]](s32)
62 ; CHECK-NEXT: PseudoRET implicit $x10
63 %0:_(s64) = COPY $f10_d
64 %1:_(s32) = G_FPTOSI %0(s64)
66 PseudoRET implicit $x10
72 tracksRegLiveness: true
77 ; CHECK-LABEL: name: fptoui_s32_s64
78 ; CHECK: liveins: $f10_d
80 ; CHECK-NEXT: [[COPY:%[0-9]+]]:fprb(s64) = COPY $f10_d
81 ; CHECK-NEXT: [[FPTOUI:%[0-9]+]]:gprb(s32) = G_FPTOUI [[COPY]](s64)
82 ; CHECK-NEXT: $x10 = COPY [[FPTOUI]](s32)
83 ; CHECK-NEXT: PseudoRET implicit $x10
84 %0:_(s64) = COPY $f10_d
85 %1:_(s32) = G_FPTOUI %0(s64)
87 PseudoRET implicit $x10