aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Assembler/constant-getelementptr-scalable_pointee.ll
blob: d39039964b3b388a53051d4fb0fc5de07c94e75c (plain)
1
2
3
4
5
6
7
8
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; Test the case of an invalid pointee type on a constant GEP

; CHECK: invalid base element for constant getelementptr

define ptr @test_scalable_vector_gep(ptr %a) {
  ret ptr getelementptr (<vscale x 1 x i8>, ptr @a, i64 1)
}