summaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2013-10-28 20:51:11 +0000
committerLang Hames <lhames@gmail.com>2013-10-28 20:51:11 +0000
commit3d478aee8e2480661cb0d98b10da8ad2ebf59fcf (patch)
treef5bc89bdef20e71120fcbe814e349b21eaaccae3 /test/CodeGen/AArch64
parent164bd156fc92dc738e5f8dce5da263e1d17211c4 (diff)
downloadllvm-3d478aee8e2480661cb0d98b10da8ad2ebf59fcf.tar.gz
llvm-3d478aee8e2480661cb0d98b10da8ad2ebf59fcf.tar.bz2
llvm-3d478aee8e2480661cb0d98b10da8ad2ebf59fcf.tar.xz
Return early from getUnconditionalBranchTargetOpValue if the branch target is
an MCExpr, in order to avoid writing an encoded zero value in the immediate field. When getUnconditionalBranchTargetOpValue is called with an MCExpr target, we don't know what the final immediate field value should be. We shouldn't explicitly set the immediate field to an encoded zero value as zero is encoded with a non-zero bit pattern. This leads to bits being set that pollute the final immediate value. The nature of the encoding is such that the polluted bits only affect very large immediate values, explaining why this hasn't caused problems earlier. Fixes <rdar://problem/15155975>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193535 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/AArch64')
0 files changed, 0 insertions, 0 deletions