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
5 # RUN: llc -mtriple=riscv64 -mattr=+d -run-pass=regbankselect \
6 # RUN: -simplify-mir -verify-machineinstrs %s \
7 # RUN: -o - | FileCheck %s
12 tracksRegLiveness: true
17 ; CHECK-LABEL: name: fpext
18 ; CHECK: liveins: $f10_f
20 ; CHECK-NEXT: [[COPY:%[0-9]+]]:fprb(s32) = COPY $f10_f
21 ; CHECK-NEXT: [[FPEXT:%[0-9]+]]:fprb(s64) = G_FPEXT [[COPY]](s32)
22 ; CHECK-NEXT: $f10_d = COPY [[FPEXT]](s64)
23 ; CHECK-NEXT: PseudoRET implicit $f10_d
24 %0:_(s32) = COPY $f10_f
25 %1:_(s64) = G_FPEXT %0(s32)
27 PseudoRET implicit $f10_d
33 tracksRegLiveness: true
38 ; CHECK-LABEL: name: fptrunc
39 ; CHECK: liveins: $f10_d
41 ; CHECK-NEXT: [[COPY:%[0-9]+]]:fprb(s64) = COPY $f10_d
42 ; CHECK-NEXT: [[FPTRUNC:%[0-9]+]]:fprb(s32) = G_FPTRUNC [[COPY]](s64)
43 ; CHECK-NEXT: $f10_f = COPY [[FPTRUNC]](s32)
44 ; CHECK-NEXT: PseudoRET implicit $f10_f
45 %0:_(s64) = COPY $f10_d
46 %1:_(s32) = G_FPTRUNC %0(s64)
48 PseudoRET implicit $f10_f