1 ; RUN: not opt -S -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 vectors
7 ; CHECK-NEXT: <vscale x 4 x i32>* @ScalableVecGlobal
8 @ScalableVecGlobal = global <vscale x 4 x i32> zeroinitializer
10 ;; Global _pointers_ to scalable vectors are fine
11 ; CHECK-NOT: Globals cannot contain scalable vectors
12 @ScalableVecPtr = global <vscale x 8 x i16>* zeroinitializer