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
230 B
LLVM
11 lines
230 B
LLVM
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
|
|
|
|
; CHECK: Incorrect alignment of return type to called function!
|
|
define dso_local void @foo() {
|
|
entry:
|
|
call <8192 x float> @bar()
|
|
ret void
|
|
}
|
|
|
|
declare dso_local <8192 x float> @bar()
|