1 ; RUN: opt -S -passes=lint -disable-output < %s 2>&1 | FileCheck %s --allow-empty
3 ; CHECK-NOT: Buffer overflow
4 define <vscale x 8 x i8> @alloca_access() {
5 %a = alloca <vscale x 8 x i8>
6 %v = load <vscale x 8 x i8>, ptr %a
7 ret <vscale x 8 x i8> %v
10 ; CHECK-NOT: Buffer overflow
11 define <vscale x 8 x i8> @alloca_access2() {
12 %a = alloca <256 x i8>
13 %v = load <vscale x 8 x i8>, ptr %a
14 ret <vscale x 8 x i8> %v
17 ; CHECK-NOT: insertelement index out of range
18 define <vscale x 8 x half> @insertelement() {
19 %insert = insertelement <vscale x 8 x half> poison, half 0xH0000, i64 100
20 ret <vscale x 8 x half> %insert
23 ; CHECK-NOT: extract index out of range
24 define half @extractelement(<vscale x 8 x half> %v) {
25 %insert = extractelement <vscale x 8 x half> %v, i64 100