87 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 42# RUN: llc -mtriple=aarch64 -run-pass=legalizer -global-isel-abort=1 %s -o - | FileCheck %s3 4---5name: isnan_326liveins:7body: |8 bb.0:9 ; CHECK-LABEL: name: isnan_3210 ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $w011 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)12 ; CHECK-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 214748364713 ; CHECK-NEXT: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 213909504014 ; CHECK-NEXT: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C]]15 ; CHECK-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(ugt), [[AND]](s32), [[C1]]16 ; CHECK-NEXT: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 017 ; CHECK-NEXT: [[OR:%[0-9]+]]:_(s32) = G_OR [[C2]], [[ICMP]]18 ; CHECK-NEXT: $w0 = COPY [[OR]](s32)19 %0:_(s32) = COPY $w020 %1:_(s1) = nofpexcept G_IS_FPCLASS %0(s32), 321 %2:_(s32) = G_ANYEXT %1(s1)22 $w0 = COPY %2(s32)23...24---25name: isnormal_3226liveins:27body: |28 bb.0:29 ; CHECK-LABEL: name: isnormal_3230 ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $w031 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)32 ; CHECK-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 214748364733 ; CHECK-NEXT: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C]]34 ; CHECK-NEXT: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 838860835 ; CHECK-NEXT: [[SUB:%[0-9]+]]:_(s32) = G_SUB [[AND]], [[C1]]36 ; CHECK-NEXT: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 213070643237 ; CHECK-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(ult), [[SUB]](s32), [[C2]]38 ; CHECK-NEXT: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 039 ; CHECK-NEXT: [[OR:%[0-9]+]]:_(s32) = G_OR [[C3]], [[ICMP]]40 ; CHECK-NEXT: $w0 = COPY [[OR]](s32)41 %0:_(s32) = COPY $w042 %1:_(s1) = nofpexcept G_IS_FPCLASS %0(s32), 26443 %2:_(s32) = G_ANYEXT %1(s1)44 $w0 = COPY %2(s32)45...46---47name: iszero_3248liveins:49body: |50 bb.0:51 ; CHECK-LABEL: name: iszero_3252 ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $w053 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)54 ; CHECK-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 214748364755 ; CHECK-NEXT: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 056 ; CHECK-NEXT: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C]]57 ; CHECK-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(eq), [[AND]](s32), [[C1]]58 ; CHECK-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY [[C1]](s32)59 ; CHECK-NEXT: [[OR:%[0-9]+]]:_(s32) = G_OR [[COPY2]], [[ICMP]]60 ; CHECK-NEXT: $w0 = COPY [[OR]](s32)61 %0:_(s32) = COPY $w062 %1:_(s1) = nofpexcept G_IS_FPCLASS %0(s32), 9663 %2:_(s32) = G_ANYEXT %1(s1)64 $w0 = COPY %2(s32)65...66---67name: iszero_6468liveins:69body: |70 bb.0:71 ; CHECK-LABEL: name: iszero_6472 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x073 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s64) = COPY [[COPY]](s64)74 ; CHECK-NEXT: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 922337203685477580775 ; CHECK-NEXT: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 076 ; CHECK-NEXT: [[AND:%[0-9]+]]:_(s64) = G_AND [[COPY1]], [[C]]77 ; CHECK-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(eq), [[AND]](s64), [[C1]]78 ; CHECK-NEXT: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 079 ; CHECK-NEXT: [[OR:%[0-9]+]]:_(s32) = G_OR [[C2]], [[ICMP]]80 ; CHECK-NEXT: [[ANYEXT:%[0-9]+]]:_(s64) = G_ANYEXT [[OR]](s32)81 ; CHECK-NEXT: $x0 = COPY [[ANYEXT]](s64)82 %0:_(s64) = COPY $x083 %1:_(s1) = nofpexcept G_IS_FPCLASS %0(s64), 9684 %2:_(s64) = G_ANYEXT %1(s1)85 $x0 = COPY %2(s64)86...87