321cbf75be
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
11 lines
274 B
LLVM
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>)
|