[PATCH] Fix ARM's add->adr translations for expressions

Joerg Sonnenberger joerg at NetBSD.org
Fri Nov 21 02:44:36 PST 2014


Hi t.p.northover, grosbach,

When transforming non-immediates from the PC-argument form of add to adr, PC needs to get added as expression base. At the same time, the magic offset 8 has to be specified too, otherwise the computed immediate is off.

http://reviews.llvm.org/D6354

Files:
  lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  test/MC/ARM/basic-arm-instructions.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6354.16476.patch
Type: text/x-patch
Size: 4282 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141121/c5f9f9a3/attachment.bin>


More information about the llvm-commits mailing list