blob: fb8fe340678b8bcb670f96cdcca20efcbf6fd535 [file] [log] [blame]
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; Check that parser rejects address spaces that are too large to fit in the 24 bits
define void @f() {
; CHECK: invalid address space, must be a 24-bit integer
%y = alloca i32, addrspace(16777216)
ret void
}