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