1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -mattr=+f -run-pass=regbankselect -simplify-mir -verify-machineinstrs %s -o - \
3 # RUN: | FileCheck -check-prefix=RV32F %s
10 ; RV32F-LABEL: name: implicit_def_gpr
11 ; RV32F: [[DEF:%[0-9]+]]:gprb(s32) = G_IMPLICIT_DEF
12 ; RV32F-NEXT: [[ADD:%[0-9]+]]:gprb(s32) = G_ADD [[DEF]], [[DEF]]
13 ; RV32F-NEXT: $x10 = COPY [[ADD]](s32)
14 %0:_(s32) = G_IMPLICIT_DEF
15 %1:_(s32) = G_ADD %0, %0
19 name: implicit_def_copy_gpr
23 ; RV32F-LABEL: name: implicit_def_copy_gpr
24 ; RV32F: [[DEF:%[0-9]+]]:gprb(s32) = G_IMPLICIT_DEF
25 ; RV32F-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY [[DEF]](s32)
26 ; RV32F-NEXT: $x10 = COPY [[COPY]](s32)
27 %0:_(s32) = G_IMPLICIT_DEF
28 %1:_(s32) = COPY %0(s32)
33 name: implicit_def_fpr
37 ; RV32F-LABEL: name: implicit_def_fpr
38 ; RV32F: [[DEF:%[0-9]+]]:fprb(s32) = G_IMPLICIT_DEF
39 ; RV32F-NEXT: [[FADD:%[0-9]+]]:fprb(s32) = G_FADD [[DEF]], [[DEF]]
40 ; RV32F-NEXT: $f10_f = COPY [[FADD]](s32)
41 %0:_(s32) = G_IMPLICIT_DEF
42 %1:_(s32) = G_FADD %0, %0
46 name: implicit_def_copy_fpr
50 ; RV32F-LABEL: name: implicit_def_copy_fpr
51 ; RV32F: [[DEF:%[0-9]+]]:fprb(s32) = G_IMPLICIT_DEF
52 ; RV32F-NEXT: $f10_f = COPY [[DEF]](s32)
53 %0:_(s32) = G_IMPLICIT_DEF