[LLVMdev] Incorrect codegen of getelementptr for ARM with JIT

Renato Golin rengolin at systemcall.org
Wed Feb 17 09:14:32 PST 2010


> 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



More information about the llvm-dev mailing list