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