[LLVMbugs] [Bug 6349] miscompilation of volatile variables in msp430 backend

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 21 04:33:47 PST 2010


http://www.llvm.org/bugs/show_bug.cgi?id=6349

Anton Korobeynikov <asl at math.spbu.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #1 from Anton Korobeynikov <asl at math.spbu.ru> 2010-02-21 06:33:47 CST ---
I have the following assembler code:

        mov.w   #0, 2(r1)
        mov.w   #0, 0(r1)
.LBB1_1:                                ; %for.cond
                                        ; =>This Inner Loop Header: Depth=1
        cmp.w   #2, 0(r1)
        jge     .LBB1_3
; BB#2:                                 ; %for.body
                                        ;   in Loop: Header=BB1_1 Depth=1
        mov.w   0(r1), r12
        rla.w   r12
        mov.w   #-695, &g_4(r12)
        add.w   #1, 0(r1)
        jmp     .LBB1_1

so, it's pretty obvious, there is a store. Confirmed on mspsim as well.

Next time please attach LLVM IR and/or resulting assembler as well.

-- 
Configure bugmail: http://www.llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are watching all bug changes.



More information about the llvm-bugs mailing list