Don't fold negative offsets into cp / dp accesses to avoid relocation errors.
authorRichard Osborne <richard@xmos.com>
Tue, 1 Nov 2011 11:31:53 +0000 (11:31 +0000)
committerRichard Osborne <richard@xmos.com>
Tue, 1 Nov 2011 11:31:53 +0000 (11:31 +0000)
commit0e6c1c536bc39f26a01fb1e207f65a351b2b4269
tree85bf0f2319bad59fd2142d55fc5f99c271b08f6c
parent441ed4ac23d0ceaa4ff3c4d302412368dab1d748
Don't fold negative offsets into cp / dp accesses to avoid relocation errors.
This can happen if the address + addend is less than the start of the cp / dp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143459 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/XCore/XCoreISelDAGToDAG.cpp
test/CodeGen/XCore/global_negative_offset.ll [new file with mode: 0644]