brintos

brintos / llvm-project-archived public Read only

0
0
Text · 968 B · ac5da88 Raw
36 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_extract6legalized:       true7regBankSelected: false8selected:        false9tracksRegLiveness: true10liveins:11body:             |12  bb.0:13 14    ; CHECK: Bad machine code: Too few operands15    %0:_(s32) = G_EXTRACT16 17    ; CHECK: Bad machine code: Too few operands18    %1:_(s32) = G_EXTRACT 019 20    ; CHECK: Bad machine code: extract source must be a register21    %2:_(s32) = G_EXTRACT 0, 122 23    ; CHECK: Bad machine code: extract offset must be a constant24    %3:_(s32) = G_IMPLICIT_DEF25    %4:_(s32) = G_CONSTANT i32 026    %5:_(s16) = G_EXTRACT %3, %427 28    ; CHECK: Bad machine code: extract source must be larger than result29    %6:_(s32) = G_IMPLICIT_DEF30    %7:_(s32) = G_EXTRACT %6, 031 32    ; CHECK: Bad machine code: extract reads past end of register33    %8:_(s1) = G_EXTRACT %6, 3234 35...36