brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · a3c98cd Raw
37 lines · plain
1#RUN: not --crash llc -mtriple=aarch64 -o - -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s2# REQUIRES: aarch64-registered-target3 4---5name:            test_insert_subreg6legalized:       true7regBankSelected: false8selected:        false9tracksRegLiveness: true10liveins:11body:             |12  bb.0:13    liveins: $s0, $h1, $q214 15    %0:fpr32 = COPY $s016 17    ; FIXME: we can't diagnose this case because the ARM backend treats fp1618    ; values as being ssub regs, creating a contradiction in the sizes.19    ; CHECK-NOT: *** Bad machine code:20    %1:fpr128 = IMPLICIT_DEF21    %2:fpr128 = INSERT_SUBREG %1:fpr128, %0:fpr32, %subreg.hsub22 23    ; CHECK: *** Bad machine code: INSERT_SUBREG expected inserted value to have equal or lesser size than the subreg it was inserted into ***24    %3:fpr128 = IMPLICIT_DEF25    %4:fpr128 = INSERT_SUBREG %3:fpr128, %0:fpr32, %subreg.dsub26 27    ; CHECK-NOT: *** Bad machine code:28    %7:fpr128 = IMPLICIT_DEF29    %8:fpr128 = INSERT_SUBREG %7:fpr128, %0:fpr32, %subreg.ssub30 31    ; CHECK-NOT: *** Bad machine code:32    %9:fpr128 = COPY $q233    %10:fpr128 = IMPLICIT_DEF34    %11:fpr128 = INSERT_SUBREG %10:fpr128, %9.ssub, %subreg.ssub35 36...37