brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · 27b629f Raw
87 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -o - -mtriple=aarch64 -run-pass=aarch64-prelegalizer-combiner %s | FileCheck %s3 4# Make sure we don't lose the register bank constraints when5# combining COPY instructions.6---7name:            test_none_none8body:             |9  bb.0.entry:10    ; CHECK-LABEL: name: test_none_none11    ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x012    ; CHECK-NEXT: $x0 = COPY [[COPY]](s64)13    %0:_(s64) = COPY $x014    %1:_(s64) = COPY %0(s64)15    $x0 = COPY %1(s64)16...17---18name:            test_gpr_none19body:             |20  bb.0.entry:21    ; CHECK-LABEL: name: test_gpr_none22    ; CHECK: [[COPY:%[0-9]+]]:gpr(s64) = COPY $x023    ; CHECK-NEXT: $x0 = COPY [[COPY]](s64)24    %0:gpr(s64) = COPY $x025    %1:_(s64) = COPY %0(s64)26    $x0 = COPY %1(s64)27...28---29name:            test_none_gpr30body:             |31  bb.0.entry:32    ; CHECK-LABEL: name: test_none_gpr33    ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x034    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:gpr(s64) = COPY [[COPY]](s64)35    ; CHECK-NEXT: $x0 = COPY [[COPY1]](s64)36    %0:_(s64) = COPY $x037    %1:gpr(s64) = COPY %0(s64)38    $x0 = COPY %1(s64)39...40---41name:            test_fpr_gpr42body:             |43  bb.0.entry:44    ; CHECK-LABEL: name: test_fpr_gpr45    ; CHECK: [[COPY:%[0-9]+]]:fpr(s64) = COPY $x046    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:gpr(s64) = COPY [[COPY]](s64)47    ; CHECK-NEXT: $x0 = COPY [[COPY1]](s64)48    %0:fpr(s64) = COPY $x049    %1:gpr(s64) = COPY %0(s64)50    $x0 = COPY %1(s64)51...52---53name:            test_gpr64_gpr64_dst_no_llt54body:             |55  bb.0.entry:56    ; CHECK-LABEL: name: test_gpr64_gpr64_dst_no_llt57    ; CHECK: [[COPY:%[0-9]+]]:gpr64(s64) = COPY $x058    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:gpr64 = COPY [[COPY]](s64)59    ; CHECK-NEXT: $x0 = COPY [[COPY1]]60    %0:gpr64(s64) = COPY $x061    %1:gpr64 = COPY %0(s64)62    $x0 = COPY %163...64---65name:            test_gpr64_gpr64_src_no_llt66body:             |67  bb.0.entry:68    ; CHECK-LABEL: name: test_gpr64_gpr64_src_no_llt69    ; CHECK: [[COPY:%[0-9]+]]:gpr64 = COPY $x070    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:gpr64(s64) = COPY [[COPY]]71    ; CHECK-NEXT: $x0 = COPY [[COPY1]](s64)72    %0:gpr64 = COPY $x073    %1:gpr64(s64) = COPY %074    $x0 = COPY %1(s64)75...76---77name:            test_gpr64_gpr64_both_no_llt78body:             |79  bb.0.entry:80    ; CHECK-LABEL: name: test_gpr64_gpr64_both_no_llt81    ; CHECK: [[COPY:%[0-9]+]]:gpr64 = COPY $x082    ; CHECK-NEXT: $x0 = COPY [[COPY]]83    %0:gpr64 = COPY $x084    %1:gpr64 = COPY %085    $x0 = COPY %186...87