38 lines · plain
1#RUN: not --crash llc -mtriple=aarch64 -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s2# REQUIRES: aarch64-registered-target3 4---5name: test_add6legalized: true7regBankSelected: false8selected: false9tracksRegLiveness: true10liveins:11body: |12 bb.0:13 14 %0:_(s32) = G_CONSTANT i32 015 %1:_(s32) = G_CONSTANT i32 116 17 ; CHECK: Bad machine code: Too few operands18 %2:_(s32) = G_ADD19 20 ; CHECK: Bad machine code: Too few operands21 %3:_(s32) = G_ADD %022 %4:_(s32) = G_ADD %0, %123 24 ; CHECK: Bad machine code: Too few operands25 ; CHECK: Bad machine code: Explicit definition marked as use26 G_ADD %0, %127 28 ; CHECK: Bad machine code: generic instruction must use register operands29 %5:_(s32) = G_ADD %0, 130 31 %6:_(s64) = G_CONSTANT i64 032 33 ; CHECK: Bad machine code: Type mismatch in generic instruction34 ; CHECK: Bad machine code: Generic virtual register does not allow subregister index35 %8:_(s32) = G_ADD %6.sub_32:_(s64), %036 37...38