brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 9e60a76 Raw
62 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 52# RUN: llc -mtriple=riscv64 -run-pass=legalizer %s -o - | FileCheck %s3 4---5name:            test_ucmp_i326body:             |7  bb.1:8    liveins: $x10, $x119 10    ; CHECK-LABEL: name: test_ucmp_i3211    ; CHECK: liveins: $x10, $x1112    ; CHECK-NEXT: {{  $}}13    ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s64) = COPY $x1014    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s64) = COPY $x1115    ; CHECK-NEXT: [[SEXT_INREG:%[0-9]+]]:_(s64) = G_SEXT_INREG [[COPY]], 3216    ; CHECK-NEXT: [[SEXT_INREG1:%[0-9]+]]:_(s64) = G_SEXT_INREG [[COPY1]], 3217    ; CHECK-NEXT: [[ICMP:%[0-9]+]]:_(s64) = G_ICMP intpred(sgt), [[SEXT_INREG]](s64), [[SEXT_INREG1]]18    ; CHECK-NEXT: [[ICMP1:%[0-9]+]]:_(s64) = G_ICMP intpred(slt), [[SEXT_INREG]](s64), [[SEXT_INREG1]]19    ; CHECK-NEXT: [[SUB:%[0-9]+]]:_(s64) = G_SUB [[ICMP]], [[ICMP1]]20    ; CHECK-NEXT: [[SEXT_INREG2:%[0-9]+]]:_(s64) = G_SEXT_INREG [[SUB]], 3221    ; CHECK-NEXT: $x10 = COPY [[SEXT_INREG2]](s64)22    ; CHECK-NEXT: PseudoRET implicit $x1023    %2:_(s64) = COPY $x1024    %0:_(s32) = G_TRUNC %2(s64)25    %3:_(s64) = COPY $x1126    %1:_(s32) = G_TRUNC %3(s64)27    %4:_(s32) = G_SCMP %0(s32), %128    %5:_(s64) = G_SEXT %4(s32)29    $x10 = COPY %5(s64)30    PseudoRET implicit $x1031 32...33---34name:            test_scmp_i3235body:             |36  bb.1:37    liveins: $x10, $x1138 39    ; CHECK-LABEL: name: test_scmp_i3240    ; CHECK: liveins: $x10, $x1141    ; CHECK-NEXT: {{  $}}42    ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s64) = COPY $x1043    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s64) = COPY $x1144    ; CHECK-NEXT: [[SEXT_INREG:%[0-9]+]]:_(s64) = G_SEXT_INREG [[COPY]], 3245    ; CHECK-NEXT: [[SEXT_INREG1:%[0-9]+]]:_(s64) = G_SEXT_INREG [[COPY1]], 3246    ; CHECK-NEXT: [[ICMP:%[0-9]+]]:_(s64) = G_ICMP intpred(sgt), [[SEXT_INREG]](s64), [[SEXT_INREG1]]47    ; CHECK-NEXT: [[ICMP1:%[0-9]+]]:_(s64) = G_ICMP intpred(slt), [[SEXT_INREG]](s64), [[SEXT_INREG1]]48    ; CHECK-NEXT: [[SUB:%[0-9]+]]:_(s64) = G_SUB [[ICMP]], [[ICMP1]]49    ; CHECK-NEXT: [[SEXT_INREG2:%[0-9]+]]:_(s64) = G_SEXT_INREG [[SUB]], 3250    ; CHECK-NEXT: $x10 = COPY [[SEXT_INREG2]](s64)51    ; CHECK-NEXT: PseudoRET implicit $x1052    %2:_(s64) = COPY $x1053    %0:_(s32) = G_TRUNC %2(s64)54    %3:_(s64) = COPY $x1155    %1:_(s32) = G_TRUNC %3(s64)56    %4:_(s32) = G_SCMP %0(s32), %157    %5:_(s64) = G_SEXT %4(s32)58    $x10 = COPY %5(s64)59    PseudoRET implicit $x1060 61...62