[LLVMdev] llvm-mc fixups
Greg Fitzgerald
garious at gmail.com
Wed Sep 12 17:54:27 PDT 2012
When I use llvm-mc’s ‘-show-encoding’, it only goes as far as printing
“fixups”:
$ echo -e "adr r0, lbl\nnop\nlbl:" | llvm-mc -triple=thumbv7 -show-encoding
Outputs:
@ encoding: [A,0xa0]
@ fixup A – offset: 0, value: lbl, kind: fixup_thumb_adr_pcrel_10
To find out that it is encoded as 0xa001, I can do:
$ echo -e "adr r0, lbl\nnop\nlbl:" | llvm-mc -triple=thumbv7
-show-encoding -filetype=obj
> tmp.o
$ llvm-objdump -d tmp.o
Is there a way to get that encoding directly from llvm-mc?
Thanks,
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120912/c3243b54/attachment.html>
More information about the llvm-dev
mailing list