1 ; RUN: not opt -S -passes=verify < %s 2>&1 | FileCheck %s
3 ;; Global variables cannot be scalable vectors, since we don't
4 ;; know the size at compile time.
6 ; CHECK: Globals cannot contain scalable types
7 ; CHECK-NEXT: ptr @ScalableVecGlobal
8 @ScalableVecGlobal = global <vscale x 4 x i32> zeroinitializer
10 ; CHECK-NEXT: Globals cannot contain scalable types
11 ; CHECK-NEXT: ptr @ScalableVecArrayGlobal
12 @ScalableVecArrayGlobal = global [ 8 x <vscale x 4 x i32> ] zeroinitializer
14 ; CHECK-NEXT: Globals cannot contain scalable types
15 ; CHECK-NEXT: ptr @ScalableVecStructGlobal
16 @ScalableVecStructGlobal = global { i32, <vscale x 4 x i32> } zeroinitializer