llvm-for-llvmta/test/Verifier/scalable-vector-struct-stor...

10 lines
416 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: not opt -S -verify < %s 2>&1 | FileCheck %s
define void @store({ i32, <vscale x 1 x i32> }* %x, i32 %y, <vscale x 1 x i32> %z) {
; CHECK: error: storing unsized types is not allowed
%a = insertvalue { i32, <vscale x 1 x i32> } undef, i32 %y, 0
%b = insertvalue { i32, <vscale x 1 x i32> } %a, <vscale x 1 x i32> %z, 1
store { i32, <vscale x 1 x i32> } %b, { i32, <vscale x 1 x i32> }* %x
ret void
}