summaryrefslogtreecommitdiff
path: root/llvm/test/Verifier/scalable-vector-struct-load.ll
blob: a0418fc99c968b6ce7fb0720e050cd3888b88414 (plain)
1
2
3
4
5
6
7
8
; RUN: not opt -S -verify < %s 2>&1 | FileCheck %s

define <vscale x 1 x i32> @load({ i32, <vscale x 1 x i32> }* %x) {
; CHECK: error: loading unsized types is not allowed
  %a = load { i32, <vscale x 1 x i32> }, { i32, <vscale x 1 x i32> }* %x
  %b = extractvalue { i32, <vscale x 1 x i32> } %a, 1
  ret <vscale x 1 x i32> %b
}