1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 3
2 # RUN: llc -mtriple=riscv32 -mattr=+d -run-pass=legalizer %s -o - \
11 ; CHECK-LABEL: name: is_fpclass_f32
12 ; CHECK: liveins: $f10_f
14 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $f10_f
15 ; CHECK-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 152
16 ; CHECK-NEXT: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
17 ; CHECK-NEXT: [[FCLASS:%[0-9]+]]:_(s32) = G_FCLASS [[COPY]](s32)
18 ; CHECK-NEXT: [[AND:%[0-9]+]]:_(s32) = G_AND [[FCLASS]], [[C]]
19 ; CHECK-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(ne), [[AND]](s32), [[C1]]
20 ; CHECK-NEXT: $x10 = COPY [[ICMP]](s32)
21 ; CHECK-NEXT: PseudoRET implicit $x10
22 %0:_(s32) = COPY $f10_f
23 %1:_(s1) = G_IS_FPCLASS %0(s32), 608
24 %2:_(s32) = G_ANYEXT %1(s1)
26 PseudoRET implicit $x10
35 ; CHECK-LABEL: name: is_fpclass_f64
36 ; CHECK: liveins: $f10_d
38 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s64) = COPY $f10_d
39 ; CHECK-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 152
40 ; CHECK-NEXT: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
41 ; CHECK-NEXT: [[FCLASS:%[0-9]+]]:_(s32) = G_FCLASS [[COPY]](s64)
42 ; CHECK-NEXT: [[AND:%[0-9]+]]:_(s32) = G_AND [[FCLASS]], [[C]]
43 ; CHECK-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(ne), [[AND]](s32), [[C1]]
44 ; CHECK-NEXT: $x10 = COPY [[ICMP]](s32)
45 ; CHECK-NEXT: PseudoRET implicit $x10
46 %0:_(s64) = COPY $f10_d
47 %1:_(s1) = G_IS_FPCLASS %0(s64), 608
48 %2:_(s32) = G_ANYEXT %1(s1)
50 PseudoRET implicit $x10