[llvm-commits] [PATCH] Fixed ADR in ARM code generator

Gordon Keiser gkeiser at arxan.com
Sun Sep 16 12:00:04 PDT 2012


> From: llvm-commits-bounces at cs.uiuc.edu [mailto:llvm-commits-bounces at cs.uiuc.edu] On Behalf Of Greg Fitzgerald
> Sent: Friday, September 14, 2012 2:26 PM
> To: llvm-commits at cs.uiuc.edu
> Subject: [llvm-commits] [PATCH] Fixed ADR in ARM code generator
>
> My first patch to LLVM, please review.
>
> This addresses bug 13537: http://llvm.org/bugs/show_bug.cgi?id=13537
>
> Thanks,
> Greg
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted
> by The Linux Foundation

There was a previous thread on this topic, but that bug should have been closed as invalid, I believe.   
getThumbAdrLabelOpValue retrieves the branch target using the fixup type fixup_thumb_adr_pcrel_10, which is defined in ARMAsmBackend.cpp to return:
((Value - 4) >> 2) & 0xff

Original message on gmane http://permalink.gmane.org/gmane.comp.compilers.llvm.cvs/119492
Someone with more extensive knowledge of the ARM backend can probably tell you more, you may be fixing something somewhat different.  

Cheers,
Gordon Keiser
Software Development Engineer
Arxan Technologies
gkeiser at arxan.com  www.arxan.comĀ 






More information about the llvm-commits mailing list