brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.5 KiB · 30faa53 Raw
113 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple aarch64 -verify-machineinstrs -run-pass=legalizer -debugify-and-strip-all-safe %s -o - | FileCheck %s3 4---5name:            narrow_scalar_usubo_s1286body:             |7  bb.0.entry:8    ; CHECK-LABEL: name: narrow_scalar_usubo_s1289    ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x010    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s64) = COPY $x111    ; CHECK-NEXT: [[COPY2:%[0-9]+]]:_(s64) = COPY $x212    ; CHECK-NEXT: [[COPY3:%[0-9]+]]:_(s64) = COPY $x313    ; CHECK-NEXT: [[USUBO:%[0-9]+]]:_(s64), [[USUBO1:%[0-9]+]]:_(s32) = G_USUBO [[COPY]], [[COPY2]]14    ; CHECK-NEXT: [[USUBE:%[0-9]+]]:_(s64), [[USUBE1:%[0-9]+]]:_(s32) = G_USUBE [[COPY1]], [[COPY3]], [[USUBO1]]15    ; CHECK-NEXT: %carry_out_ext:_(s64) = G_ANYEXT [[USUBE1]](s32)16    ; CHECK-NEXT: $x0 = COPY [[USUBO]](s64)17    ; CHECK-NEXT: $x1 = COPY [[USUBE]](s64)18    ; CHECK-NEXT: $x2 = COPY %carry_out_ext(s64)19    %0:_(s64) = COPY $x020    %1:_(s64) = COPY $x121    %2:_(s64) = COPY $x222    %3:_(s64) = COPY $x323    %lhs:_(s128) = G_MERGE_VALUES %0, %124    %rhs:_(s128) = G_MERGE_VALUES %2, %325    %sub:_(s128), %carry_out:_(s1) = G_USUBO %lhs, %rhs26    %sub0:_(s64), %sub1:_(s64) = G_UNMERGE_VALUES %sub27    %carry_out_ext:_(s64) = G_ANYEXT %carry_out28    $x0 = COPY %sub029    $x1 = COPY %sub130    $x2 = COPY %carry_out_ext31 32...33---34name:            narrow_scalar_usubo_big_nonpow235body:             |36  bb.0.entry:37    ; CHECK-LABEL: name: narrow_scalar_usubo_big_nonpow238    ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x039    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s64) = COPY $x140    ; CHECK-NEXT: [[COPY2:%[0-9]+]]:_(s64) = COPY $x241    ; CHECK-NEXT: [[COPY3:%[0-9]+]]:_(s64) = COPY $x342    ; CHECK-NEXT: [[USUBO:%[0-9]+]]:_(s64), [[USUBO1:%[0-9]+]]:_(s32) = G_USUBO [[COPY]], [[COPY1]]43    ; CHECK-NEXT: [[USUBE:%[0-9]+]]:_(s64), [[USUBE1:%[0-9]+]]:_(s32) = G_USUBE [[COPY1]], [[COPY2]], [[USUBO1]]44    ; CHECK-NEXT: [[USUBE2:%[0-9]+]]:_(s64), [[USUBE3:%[0-9]+]]:_(s32) = G_USUBE [[COPY2]], [[COPY3]], [[USUBE1]]45    ; CHECK-NEXT: %carry_out_ext:_(s64) = G_ANYEXT [[USUBE3]](s32)46    ; CHECK-NEXT: $x0 = COPY [[USUBO]](s64)47    ; CHECK-NEXT: $x1 = COPY [[USUBE]](s64)48    ; CHECK-NEXT: $x2 = COPY [[USUBE2]](s64)49    ; CHECK-NEXT: $x3 = COPY %carry_out_ext(s64)50    %0:_(s64) = COPY $x051    %1:_(s64) = COPY $x152    %2:_(s64) = COPY $x253    %3:_(s64) = COPY $x354    %lhs:_(s192) = G_MERGE_VALUES %0, %1, %255    %rhs:_(s192) = G_MERGE_VALUES %1, %2, %356    %sub:_(s192), %carry_out:_(s1) = G_USUBO %lhs, %rhs57    %sub0:_(s64), %sub1:_(s64), %sub2:_(s64) = G_UNMERGE_VALUES %sub58    %carry_out_ext:_(s64) = G_ANYEXT %carry_out59    $x0 = COPY %sub060    $x1 = COPY %sub161    $x2 = COPY %sub262    $x3 = COPY %carry_out_ext63 64...65---66name:            test_scalar_usubo_small67body:             |68  bb.0.entry:69    ; CHECK-LABEL: name: test_scalar_usubo_small70    ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x071    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(s64) = COPY $x172    ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[COPY]](s64)73    ; CHECK-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 25574    ; CHECK-NEXT: [[AND:%[0-9]+]]:_(s32) = G_AND [[TRUNC]], [[C]]75    ; CHECK-NEXT: [[TRUNC1:%[0-9]+]]:_(s32) = G_TRUNC [[COPY1]](s64)76    ; CHECK-NEXT: [[AND1:%[0-9]+]]:_(s32) = G_AND [[TRUNC1]], [[C]]77    ; CHECK-NEXT: [[SUB:%[0-9]+]]:_(s32) = G_SUB [[AND]], [[AND1]]78    ; CHECK-NEXT: [[AND2:%[0-9]+]]:_(s32) = G_AND [[SUB]], [[C]]79    ; CHECK-NEXT: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(ne), [[SUB]](s32), [[AND2]]80    ; CHECK-NEXT: [[ANYEXT:%[0-9]+]]:_(s64) = G_ANYEXT [[SUB]](s32)81    ; CHECK-NEXT: [[ANYEXT1:%[0-9]+]]:_(s64) = G_ANYEXT [[ICMP]](s32)82    ; CHECK-NEXT: $x0 = COPY [[ANYEXT]](s64)83    ; CHECK-NEXT: $x1 = COPY [[ANYEXT1]](s64)84    %0:_(s64) = COPY $x085    %1:_(s64) = COPY $x186    %2:_(s8) = G_TRUNC %0(s64)87    %3:_(s8) = G_TRUNC %1(s64)88    %4:_(s8), %5:_(s1) = G_USUBO %2, %389    %6:_(s64) = G_ANYEXT %4(s8)90    %7:_(s64) = G_ANYEXT %5(s1)91    $x0 = COPY %6(s64)92    $x1 = COPY %7(s64)93 94...95---96name:            test_scalar_usubo_3297body:             |98  bb.0.entry:99    ; CHECK-LABEL: name: test_scalar_usubo_32100    ; CHECK: %lhs:_(s32) = COPY $w0101    ; CHECK-NEXT: %rhs:_(s32) = COPY $w1102    ; CHECK-NEXT: %sub:_(s32), %5:_(s32) = G_USUBO %lhs, %rhs103    ; CHECK-NEXT: $w0 = COPY %sub(s32)104    ; CHECK-NEXT: $w1 = COPY %5(s32)105    %lhs:_(s32) = COPY $w0106    %rhs:_(s32) = COPY $w1107    %sub:_(s32), %carry_out:_(s1) = G_USUBO %lhs, %rhs108    %carry_out_ext:_(s32) = G_ANYEXT %carry_out109    $w0 = COPY %sub110    $w1 = COPY %carry_out_ext111 112...113