OSDN Git Service

[SystemZ] Fix applyFixup for 12-bit fixups
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 1 Dec 2016 17:10:27 +0000 (17:10 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 1 Dec 2016 17:10:27 +0000 (17:10 +0000)
commita9d6e8b6eedb45d0539814aeeb37ed19b759c0c5
treebd3fc41f3f4a4793bc695cc3758260613a67e49e
parent7d6a2cb700477f9d20774a0af8bcd32008bf9665
[SystemZ] Fix applyFixup for 12-bit fixups

Now that we have fixups that only fill parts of a byte, it turns
out we have to mask off the bits outside the fixup area when
applying them.  Failing to do so caused invalid object code to
be emitted for bprp with a negative 12-bit displacement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288374 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmBackend.cpp