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

           Summary: code gen issue for array arithmetic with casts
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: ARM
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=3248)
 --> (http://llvm.org/bugs/attachment.cgi?id=3248)
source code for reproducer

The attached code is a reproducer for this bug.

In essence, the following macro returns a constant value:

#define bin_at(i)      ((mbinptr)((char*)&(Xav[2*(i) + 2]) - 2*sizeof(int)))


no matter what the value of i.


Disclaimer:

The problem occurred on an svn revision a couple of weeks old
on a linux cross-compilation environment.


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to