Hi All,
This patch will work for little and big endian.
Please review.
Thanks,
Christian
Differential D3380
ARM: For thumb fixups store halfwords high first and low second cpirker on Apr 15 2014, 9:54 AM. Authored by
Details
Hi All, This patch will work for little and big endian. Thanks,
Diff Detail Event TimelineComment Actions These changes look reasonable to me and do improve things on our ABI test suite. But it should include one or more regression tests in llvm/test/MC/ARM along the lines of: thumb2be-b.w-encoding.s @ RUN: llvm-mc -triple=thumbebv7-none-linux-gnueabi -mcpu=cortex-a8 -filetype=obj < %s | llvm-objdump -arch=thumbeb -s - | FileCheck %s .syntax unified .code 16 .thumb_func foo: b.w bar @ CHECK: Contents of section .text: @ CHECK-NEXT: 0000 f7ffbffe I'd rather use 'llvm-objdump -arch=thumbeb -disassemble -' instead of '-s' but llvm-objdump seems broken for -arch=thumbeb (which would be good to fix too, separately).
Comment Actions Hi All, I updated the functions name SwapHalfWords and added the function JoinHalfWords. Thanks, Comment Actions Thanks for fixing this.
Comment Actions Hi, I updated the source code as noted in the comments. Thanks, Comment Actions Hi, I made a mistake in my diff file. Thanks, Comment Actions Thanks for addressing all the feedback!
|
Why not call it SwapHalfWords? It isnt tied to a MCFixup.