1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=aarch64 -run-pass=legalizer %s -o - | FileCheck %s
7 ; CHECK-LABEL: name: test_icmp
8 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
9 ; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $x0
10 ; CHECK: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[COPY]](s64)
11 ; CHECK: [[TRUNC1:%[0-9]+]]:_(s32) = G_TRUNC [[COPY1]](s64)
12 ; CHECK: [[FCMP:%[0-9]+]]:_(s32) = G_FCMP floatpred(oge), [[COPY]](s64), [[COPY1]]
13 ; CHECK: $w0 = COPY [[FCMP]](s32)
14 ; CHECK: [[FCMP1:%[0-9]+]]:_(s32) = G_FCMP floatpred(uno), [[TRUNC]](s32), [[TRUNC1]]
15 ; CHECK: $w0 = COPY [[FCMP1]](s32)
18 %2:_(s32) = G_TRUNC %0(s64)
19 %3:_(s32) = G_TRUNC %1(s64)
20 %4:_(s32) = G_FCMP floatpred(oge), %0(s64), %1
22 %5:_(s32) = G_FCMP floatpred(uno), %2(s32), %3