llvm-project/llvm/test/Verifier/byval-size-limit.ll
Eli Friedman 82cca0c77e
[IR] Unify max alignment for arguments with generic max align. (#99257)
The 2^14 limit was completely arbitrary; the generic limit is still
arbitrary, but at least it's the same arbitrary limit as everything
else.

While I'm here, also add a verifier check for the ByValOrByRefSize.
2024-07-18 12:32:13 -07:00

5 lines
152 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; CHECK: huge 'byval' arguments are unsupported
define void @f(ptr byval([2147483648 x i16])) { ret void }