[LLVMbugs] [Bug 2262] volatile load should not be moved inside loop
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Apr 29 10:29:54 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2262
Chris Lattner <sabre at nondot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Keywords| |miscompilation
Resolution| |FIXED
--- Comment #6 from Chris Lattner <sabre at nondot.org> 2008-04-29 12:29:52 ---
Second fix here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080428/061771.html
We now get:
_main:
subl $12, %esp
xorl %eax, %eax
movl _g_1, %ecx
.align 4,0x90
LBB3_1: ## bb
addl $5, %ecx
movl %ecx, _g_1
incl %eax
cmpl $10, %eax
movl _g_1, %ecx
jne LBB3_1 ## bb
LBB3_2: ## bb11
movl $_.str, (%esp)
call _puts
xorl %eax, %eax
addl $12, %esp
ret
with llvm-gcc -Os -S t.c -Wall -o - -static -fomit-frame-pointer, which I
believe to be right.
Thanks!
--
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