bolt/deps/llvm-18.1.8/llvm/test/Verifier/scalable-vector-struct-gep.ll
2025-02-14 19:21:04 +01:00

9 lines
312 B
LLVM

; RUN: not opt -S -passes=verify < %s 2>&1 | FileCheck %s
%struct.test = type { <vscale x 1 x double>, <vscale x 1 x double> }
define void @gep(ptr %a) {
; CHECK: error: getelementptr cannot target structure that contains scalable vector type
%a.addr = getelementptr %struct.test, ptr %a, i32 0
ret void
}