Renato Golin
2010-Feb-17 17:14 UTC
[LLVMdev] Incorrect codegen of getelementptr for ARM with JIT
> Inline the init function: store 11 at the address of the "value" variable, > call printf with the string from r5. This is a bug, should have stored at an > offset of four (str r1, [r4,4]).Exactly! The IR is correct, the bug seems to be lower down. I'm no expert in the ARM back-end, though. But your report is detailed enough to help whoever is. ;) cheers, --renato http://systemcall.org/ Reclaim your digital rights, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm
Martins Mozeiko
2010-Feb-23 13:33 UTC
[LLVMdev] Incorrect codegen of getelementptr for ARM with JIT
Hi. Sorry for bringing this again. I really need to find source of this bug. Can somebody give address/name of person who knows ARM implementation in LLVM in more details and to whom I could address my questions directly? -- Martins Mozeiko On Feb 19, 2010, at 19:43 , Martins Mozeiko wrote:> Thanks for confirming this. > > Is there anybody with experience with ARM JIT codegen who can take a look into this? > Or can somebody direct where to look how JIT on ARM processes getelementptr instruction? > > -- > Martins Mozeiko > > > On Feb 17, 2010, at 19:14 , Renato Golin wrote: > >>> Inline the init function: store 11 at the address of the "value" variable, >>> call printf with the string from r5. This is a bug, should have stored at an >>> offset of four (str r1, [r4,4]). >> >> Exactly! The IR is correct, the bug seems to be lower down. >> >> I'm no expert in the ARM back-end, though. But your report is detailed >> enough to help whoever is. ;) >> >> >> cheers, >> --renato >> >> http://systemcall.org/ >> >> Reclaim your digital rights, eliminate DRM, learn more at >> http://www.defectivebydesign.org/what_is_drm >
Apparently Analagous Threads
- [LLVMdev] Incorrect codegen of getelementptr for ARM with JIT
- [LLVMdev] Incorrect codegen of getelementptr for ARM with JIT
- [LLVMdev] Incorrect codegen of getelementptr for ARM with JIT
- [LLVMdev] Incorrect execution of global constructor with JIT on ARM
- [LLVMdev] Incorrect execution of global constructor with JIT on ARM