53 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=riscv64 -mattr=+d -run-pass=regbankselect -simplify-mir -verify-machineinstrs %s -o - \3# RUN: | FileCheck -check-prefix=RV64D %s4 5---6name: implicit_def_gpr7legalized: true8body: |9 bb.0:10 ; RV64D-LABEL: name: implicit_def_gpr11 ; RV64D: [[DEF:%[0-9]+]]:gprb(s64) = G_IMPLICIT_DEF12 ; RV64D-NEXT: [[ADD:%[0-9]+]]:gprb(s64) = G_ADD [[DEF]], [[DEF]]13 ; RV64D-NEXT: $x10 = COPY [[ADD]](s64)14 %0:_(s64) = G_IMPLICIT_DEF15 %1:_(s64) = G_ADD %0, %016 $x10 = COPY %1(s64)17...18---19name: implicit_def_copy_gpr20legalized: true21body: |22 bb.0:23 ; RV64D-LABEL: name: implicit_def_copy_gpr24 ; RV64D: [[DEF:%[0-9]+]]:gprb(s64) = G_IMPLICIT_DEF25 ; RV64D-NEXT: [[COPY:%[0-9]+]]:gprb(s64) = COPY [[DEF]](s64)26 ; RV64D-NEXT: $x10 = COPY [[COPY]](s64)27 %0:_(s64) = G_IMPLICIT_DEF28 %1:_(s64) = COPY %0(s64)29 $x10 = COPY %1(s64)30...31 32---33name: implicit_def_fpr34legalized: true35body: |36 bb.0:37 ; RV64D-LABEL: name: implicit_def_fpr38 ; RV64D: [[DEF:%[0-9]+]]:fprb(s64) = G_IMPLICIT_DEF39 ; RV64D-NEXT: [[FADD:%[0-9]+]]:fprb(s64) = G_FADD [[DEF]], [[DEF]]40 ; RV64D-NEXT: $f10_d = COPY [[FADD]](s64)41 %0:_(s64) = G_IMPLICIT_DEF42 %1:_(s64) = G_FADD %0, %043 $f10_d = COPY %1(s64)44...45---46name: implicit_def_copy_fpr47legalized: true48body: |49 bb.0:50 %0:_(s64) = G_IMPLICIT_DEF51 $f10_d = COPY %0(s64)52...53