1 # RUN: not llc -march=aarch64 -o /dev/null -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
2 # REQUIRES: global-isel, aarch64-registered-target
7 tracksRegLiveness: true
12 ; CHECK: Bad machine code: Too few operands
15 ; CHECK: Bad machine code: Too few operands
16 ; CHECK: Bad machine code: generic instruction must use register operands
17 %1:_(s32) = G_INSERT 0
19 ; CHECK: Bad machine code: generic instruction must use register operands
20 ; CHECK: Bad machine code: generic instruction must use register operands
21 ; CHECK: Bad machine code: insert source must be a register
22 %2:_(s32) = G_INSERT 0, 0, 0
24 %3:_(s32) = G_IMPLICIT_DEF
25 %4:_(s1) = G_IMPLICIT_DEF
27 ; CHECK: Bad machine code: insert writes past end of register
28 %5:_(s32) = G_INSERT %3, %4, 32
30 ; CHECK: Bad machine code: insert offset must be a constant
31 %5:_(s32) = G_INSERT %3, %4, %3
33 ; CHECK: Bad machine code: insert offset must be a constant
34 %6:_(s32) = G_INSERT %3, %4, i32 4
36 %7:_(s64) = G_IMPLICIT_DEF
38 ; CHECK: Bad machine code: inserted size must be smaller than total register
39 %8:_(s32) = G_INSERT %3, %7, 0
41 ; CHECK: Bad machine code: inserted size must be smaller than total register
42 %9:_(s32) = G_INSERT %3, %3, 0