llvm-project/llvm/test/Verifier/param-attr-align.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

11 lines
255 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; CHECK: huge alignments are not supported yet
define dso_local void @foo(ptr %p) {
entry:
call void @bar(ptr noundef byval(<8 x float>) align 8589934592 %p)
ret void
}
declare dso_local void @bar(ptr %p)