Merging r238751:

------------------------------------------------------------------------
r238751 | rafael | 2015-06-01 16:10:51 +0100 (Mon, 01 Jun 2015) | 3 lines

Fix relocation selection for foo-. on mips.

This handles only the 32 bit case.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@239700 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Sanders committed 2015-06-14 15:45:45 +00:00
1 parent 30da795f5c
commit 26c5743f8a
2 files changed
+11 -2

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux < %s | llvm-readobj -r | FileCheck %s
// Test that we produce the correct relocation.
// FIXME: move more relocation only tests here.
.long foo
// CHECK: R_MIPS_32 foo
.long foo-.
// CHECK: R_MIPS_PC32 foo