[LLVMbugs] [Bug 11947] New: Bad code generated for armv6, thumb. Access of float struct member mixed up.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 8 07:25:57 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11947
Bug #: 11947
Summary: Bad code generated for armv6, thumb. Access of float
struct member mixed up.
Product: clang
Version: 3.0
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clang at nikopol.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Code from an iOS project:
// ...
for (UITouch* touch in touches) {
CGPoint p0 = [touch previousLocationInView:nil];
NSLog(@"%f, %f", p0.x, p0.y);
}
// ...
Above code always prints the same value for p0.x and p0.y even when they really
differ.
I tried to reduce the problem to a single file/small project, but it went away.
So I have this ~25 files Xcode project which has the error. I can provide the
project if anyone would be interested to investigate.
The problem only occurs when -Os -mthumb -arch armv6.
--
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