[ELF][MIPS] Rename test file. NFC
authorSimon Atanasyan <simon@atanasyan.com>
Tue, 29 Dec 2015 21:09:26 +0000 (21:09 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Tue, 29 Dec 2015 21:09:26 +0000 (21:09 +0000)
llvm-svn: 256577

lld/test/ELF/mips-gprel32-relocs.s [new file with mode: 0644]
lld/test/ELF/mips-gprel32-relocs.test [deleted file]

diff --git a/lld/test/ELF/mips-gprel32-relocs.s b/lld/test/ELF/mips-gprel32-relocs.s
new file mode 100644 (file)
index 0000000..4f93d50
--- /dev/null
@@ -0,0 +1,31 @@
+# Check R_MIPS_GPREL32 relocation calculation.
+
+# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
+# RUN: ld.lld -shared -o %t.so %t.o
+# RUN: llvm-objdump -s -section=.rodata -t %t.so | FileCheck %s
+
+# REQUIRES: mips
+
+  .text
+  .globl  __start
+__start:
+  lw      $t0,%call16(__start)($gp)
+foo:
+  nop
+bar:
+  nop
+
+  .section .rodata, "a"
+v1:
+  .gpword foo
+  .gpword bar
+
+# CHECK: Contents of section .rodata:
+# CHECK:  0114 fffe8014 fffe8018
+#              ^ 0x10004 - 0x27ff0
+#                       ^ 0x10008 - 0x27ff0
+
+# CHECK: SYMBOL TABLE:
+# CHECK: 00010008         .text           00000000 bar
+# CHECK: 00010004         .text           00000000 foo
+# CHECK: 00027ff0         *ABS*           00000000 _gp
diff --git a/lld/test/ELF/mips-gprel32-relocs.test b/lld/test/ELF/mips-gprel32-relocs.test
deleted file mode 100644 (file)
index 4f93d50..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-# Check R_MIPS_GPREL32 relocation calculation.
-
-# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
-# RUN: ld.lld -shared -o %t.so %t.o
-# RUN: llvm-objdump -s -section=.rodata -t %t.so | FileCheck %s
-
-# REQUIRES: mips
-
-  .text
-  .globl  __start
-__start:
-  lw      $t0,%call16(__start)($gp)
-foo:
-  nop
-bar:
-  nop
-
-  .section .rodata, "a"
-v1:
-  .gpword foo
-  .gpword bar
-
-# CHECK: Contents of section .rodata:
-# CHECK:  0114 fffe8014 fffe8018
-#              ^ 0x10004 - 0x27ff0
-#                       ^ 0x10008 - 0x27ff0
-
-# CHECK: SYMBOL TABLE:
-# CHECK: 00010008         .text           00000000 bar
-# CHECK: 00010004         .text           00000000 foo
-# CHECK: 00027ff0         *ABS*           00000000 _gp