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