[LLVMbugs] [Bug 2962] New: stack realignment code does not work with alloca in function
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Oct 27 22:37:09 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2962
Summary: stack realignment code does not work with alloca in
function
Product: libraries
Version: 1.0
Platform: PC
OS/Version: All
Status: NEW
Keywords: miscompilation
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
Stack realignment does not work properly for this case:
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-pc-linux-gnu"
define void @foo(i32 %t) nounwind {
%tmp1210 = alloca i8, i32 40, align 16
store i8 0, i8* %tmp1210
%x = alloca i8, i32 %t
ret void
}
If you comment out "x", the stack realignment does work. This causes
miscompilations when the code generator infers memsets using xmm regs e.g. Bug
2888
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list