1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-31 16:02:52 +01:00
llvm-mirror/test/Assembler/align-inst-alloca.ll
Dan Gohman 939744be5f Define a maximum supported alignment value for load, store, and
alloca instructions (constrained by their internal encoding),
and add error checking for it. Fix an instcombine bug which
generated huge alignment values (null is infinitely aligned).
This fixes undefined behavior noticed by John Regehr.

llvm-svn: 109643
2010-07-28 20:12:04 +00:00

7 lines
117 B
LLVM

; RUN: not llvm-as %s -o /dev/null 2>/dev/null
define void @foo() {
%p = alloca i1, align 1073741824
ret void
}