brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · cb5834d Raw
45 lines · plain
1# RUN: not --crash llc -mtriple=aarch64 -o /dev/null -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s2# REQUIRES: aarch64-registered-target3 4---5name:            test_insert6legalized:       true7tracksRegLiveness: true8liveins:9body:             |10  bb.0:11 12    ; CHECK: Bad machine code: Too few operands13    %0:_(s32) = G_INSERT14 15    ; CHECK: Bad machine code: Too few operands16    ; CHECK: Bad machine code: generic instruction must use register operands17    %1:_(s32) = G_INSERT 018 19    ; CHECK: Bad machine code: generic instruction must use register operands20    ; CHECK: Bad machine code: generic instruction must use register operands21    ; CHECK: Bad machine code: insert source must be a register22    %2:_(s32) = G_INSERT 0, 0, 023 24    %3:_(s32) = G_IMPLICIT_DEF25    %4:_(s1) = G_IMPLICIT_DEF26 27    ; CHECK: Bad machine code: insert writes past end of register28    %5:_(s32) = G_INSERT %3, %4, 3229 30    ; CHECK: Bad machine code: insert offset must be a constant31    %5:_(s32) = G_INSERT %3, %4, %332 33    ; CHECK: Bad machine code: insert offset must be a constant34    %6:_(s32) = G_INSERT %3, %4, i32 435 36    %7:_(s64) = G_IMPLICIT_DEF37 38    ; CHECK: Bad machine code: inserted size must be smaller than total register39    %8:_(s32) = G_INSERT %3, %7, 040 41    ; CHECK: Bad machine code: inserted size must be smaller than total register42    %9:_(s32) = G_INSERT %3, %3, 043 44...45