1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 3
2 # RUN: llc -mtriple=riscv64 -mattr=+zfh -run-pass=regbankselect -verify-machineinstrs %s -o - \
12 ; CHECK-LABEL: name: is_fpclass_f16
13 ; CHECK: liveins: $f10_h
15 ; CHECK-NEXT: [[COPY:%[0-9]+]]:fprb(s16) = COPY $f10_h
16 ; CHECK-NEXT: [[C:%[0-9]+]]:gprb(s64) = G_CONSTANT i64 152
17 ; CHECK-NEXT: [[C1:%[0-9]+]]:gprb(s64) = G_CONSTANT i64 0
18 ; CHECK-NEXT: [[FCLASS:%[0-9]+]]:gprb(s64) = G_FCLASS [[COPY]](s16)
19 ; CHECK-NEXT: [[AND:%[0-9]+]]:gprb(s64) = G_AND [[FCLASS]], [[C]]
20 ; CHECK-NEXT: [[ICMP:%[0-9]+]]:gprb(s64) = G_ICMP intpred(ne), [[AND]](s64), [[C1]]
21 ; CHECK-NEXT: $x10 = COPY [[ICMP]](s64)
22 ; CHECK-NEXT: PseudoRET implicit $x10
23 %0:_(s16) = COPY $f10_h
24 %3:_(s64) = G_CONSTANT i64 152
25 %4:_(s64) = G_CONSTANT i64 0
26 %5:_(s64) = G_FCLASS %0(s16)
27 %6:_(s64) = G_AND %5, %3
28 %7:_(s64) = G_ICMP intpred(ne), %6(s64), %4
30 PseudoRET implicit $x10