1 # RUN: not llc -o - -march=arm64 -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
2 # REQUIRES: aarch64-registered-target
5 tracksRegLiveness: true
9 %0:_(s32) = IMPLICIT_DEF
11 ; CHECK: Bad machine code: G_BUILD_VECTOR must produce a vector from scalar operands
12 %1:_(s32) = G_BUILD_VECTOR %0
14 %2:_(<2 x s32>) = IMPLICIT_DEF
16 ; CHECK: Bad machine code: G_BUILD_VECTOR must produce a vector from scalar operands
17 %3:_(<2 x s32>) = G_BUILD_VECTOR %2
19 ; CHECK: Bad machine code: G_BUILD_VECTOR must have an operand for each elemement
20 %4:_(<2 x s32>) = G_BUILD_VECTOR %0, %0, %0, %0
22 ; CHECK: Bad machine code: G_BUILD_VECTOR result element type must match source type
23 ; CHECK: Bad machine code: G_BUILD_VECTOR must have an operand for each elemement
24 %5:_(<4 x s16>) = G_BUILD_VECTOR %0, %0
26 %6:_(s16) = IMPLICIT_DEF
28 ; CHECK: Bad machine code: G_BUILD_VECTOR result element type must match source type
29 ; CHECK: Bad machine code: G_BUILD_VECTOR must have an operand for each elemement
30 %7:_(<2 x s32>) = G_BUILD_VECTOR %6, %6, %6, %6
32 %8:_(p0) = IMPLICIT_DEF
34 ; CHECK: Bad machine code: G_BUILD_VECTOR result element type must match source type
35 %9:_(<2 x s64>) = G_BUILD_VECTOR %8, %8
37 %10:_(s64) = IMPLICIT_DEF
39 ; CHECK: Bad machine code: G_BUILD_VECTOR result element type must match source type
40 %11:_(<2 x p0>) = G_BUILD_VECTOR %10, %10