llvm-project/llvm/test/Verifier/param-align.ll
Luo, Yuanke 321cbf75be [Verifier] Verify parameter alignment.
In DAGISel, the parameter alignment only have 4 bits to hold the value.
The encode(alignment) would plus the shift value by 1, so the max aligment
ISel can support is 2^14. This patch verify the parameter and return
value for alignment.

Differential Revision: https://reviews.llvm.org/D121898
2022-03-27 08:35:05 +08:00

11 lines
274 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; CHECK: Incorrect alignment of argument passed to called function!
define dso_local void @foo(<8192 x float> noundef %vec) {
entry:
call void @bar(<8192 x float> %vec)
ret void
}
declare dso_local void @bar(<8192 x float>)