1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv64 -mattr=+d -run-pass=regbankselect \
3 # RUN: -simplify-mir -verify-machineinstrs %s \
4 # RUN: -o - | FileCheck %s
11 liveins: $f10_f, $f11_f
13 ; CHECK-LABEL: name: fcmp_f32
14 ; CHECK: liveins: $f10_f, $f11_f
16 ; CHECK-NEXT: [[COPY:%[0-9]+]]:fprb(s32) = COPY $f10_f
17 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:fprb(s32) = COPY $f11_f
18 ; CHECK-NEXT: [[FCMP:%[0-9]+]]:gprb(s64) = G_FCMP floatpred(oeq), [[COPY]](s32), [[COPY1]]
19 ; CHECK-NEXT: $x10 = COPY [[FCMP]](s64)
20 ; CHECK-NEXT: PseudoRET implicit $x10
21 %0:_(s32) = COPY $f10_f
22 %1:_(s32) = COPY $f11_f
23 %4:_(s64) = G_FCMP floatpred(oeq), %0(s32), %1
25 PseudoRET implicit $x10
33 liveins: $f10_d, $f11_d
35 ; CHECK-LABEL: name: fcmp_f64
36 ; CHECK: liveins: $f10_d, $f11_d
38 ; CHECK-NEXT: [[COPY:%[0-9]+]]:fprb(s64) = COPY $f10_d
39 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:fprb(s64) = COPY $f11_d
40 ; CHECK-NEXT: [[FCMP:%[0-9]+]]:gprb(s64) = G_FCMP floatpred(oeq), [[COPY]](s64), [[COPY1]]
41 ; CHECK-NEXT: $x10 = COPY [[FCMP]](s64)
42 ; CHECK-NEXT: PseudoRET implicit $x10
43 %0:_(s64) = COPY $f10_d
44 %1:_(s64) = COPY $f11_d
45 %4:_(s64) = G_FCMP floatpred(oeq), %0(s64), %1
47 PseudoRET implicit $x10