summaryrefslogtreecommitdiff
path: root/test/MC/Mips/relocation.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Mips/relocation.s')
-rw-r--r--test/MC/Mips/relocation.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/Mips/relocation.s b/test/MC/Mips/relocation.s
new file mode 100644
index 0000000000000..642b40960a657
--- /dev/null
+++ b/test/MC/Mips/relocation.s
@@ -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