llvm-for-llvmta/test/Verifier/scalable-vector-struct-load.ll

9 lines
329 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; 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
}