1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv64 -mattr=+d -run-pass=instruction-select -simplify-mir -verify-machineinstrs %s -o - \
3 # RUN: | FileCheck -check-prefix=RV64D %s
11 ; RV64D-LABEL: name: implicit_def_gpr
12 ; RV64D: [[DEF:%[0-9]+]]:gpr = IMPLICIT_DEF
13 ; RV64D-NEXT: [[ADD:%[0-9]+]]:gpr = ADD [[DEF]], [[DEF]]
14 ; RV64D-NEXT: $x10 = COPY [[ADD]]
15 %0:gprb(s64) = G_IMPLICIT_DEF
16 %1:gprb(s64) = G_ADD %0, %0
20 name: implicit_def_copy_gpr
25 ; RV64D-LABEL: name: implicit_def_copy_gpr
26 ; RV64D: [[DEF:%[0-9]+]]:gpr = IMPLICIT_DEF
27 ; RV64D-NEXT: $x10 = COPY [[DEF]]
28 %0:gprb(s64) = G_IMPLICIT_DEF
29 %1:gprb(s64) = COPY %0(s64)
34 name: implicit_def_fpr
39 ; RV64D-LABEL: name: implicit_def_fpr
40 ; RV64D: [[DEF:%[0-9]+]]:fpr64 = IMPLICIT_DEF
41 ; RV64D-NEXT: [[FADD_D:%[0-9]+]]:fpr64 = nofpexcept FADD_D [[DEF]], [[DEF]], 7
42 ; RV64D-NEXT: $f10_d = COPY [[FADD_D]]
43 %0:fprb(s64) = G_IMPLICIT_DEF
44 %1:fprb(s64) = G_FADD %0, %0
48 name: implicit_def_copy_fpr
53 ; RV64D-LABEL: name: implicit_def_copy_fpr
54 ; RV64D: [[DEF:%[0-9]+]]:fpr64 = IMPLICIT_DEF
55 ; RV64D-NEXT: $f10_d = COPY [[DEF]]
56 %0:fprb(s64) = G_IMPLICIT_DEF
57 %1:fprb(s64) = COPY %0(s64)