[lld] r234114 - [Mips] Add checking of .reginfo section options to the test case
Simon Atanasyan
simon at atanasyan.com
Sun Apr 5 02:01:35 PDT 2015
Author: atanasyan
Date: Sun Apr 5 04:01:35 2015
New Revision: 234114
URL: http://llvm.org/viewvc/llvm-project?rev=234114&view=rev
Log:
[Mips] Add checking of .reginfo section options to the test case
Modified:
lld/trunk/test/elf/Mips/reginfo-02.test
Modified: lld/trunk/test/elf/Mips/reginfo-02.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Mips/reginfo-02.test?rev=234114&r1=234113&r2=234114&view=diff
==============================================================================
--- lld/trunk/test/elf/Mips/reginfo-02.test (original)
+++ lld/trunk/test/elf/Mips/reginfo-02.test Sun Apr 5 04:01:35 2015
@@ -3,14 +3,29 @@
# RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o
# RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o
# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t1.o %t2.o
-# RUN: llvm-objdump -s -t %t.so | FileCheck %s
+# RUN: llvm-readobj -s %t.so | FileCheck -check-prefix=SEC %s
+# RUN: llvm-objdump -s -t %t.so | FileCheck -check-prefix=RAW %s
-# CHECK: Contents of section .reginfo:
-# CHECK-NEXT: 00b4 f0000001 e0000002 d0000003 c0000004
-# CHECK-NEXT: 00c4 b0000005 f08f0000
+# SEC: Index: 1
+# SEC-NEXT: Name: .reginfo (1)
+# SEC-NEXT: Type: SHT_MIPS_REGINFO (0x70000006)
+# SEC-NEXT: Flags [ (0x2)
+# SEC-NEXT: SHF_ALLOC (0x2)
+# SEC-NEXT: ]
+# SEC-NEXT: Address: {{[0-9A-F]+}}
+# SEC-NEXT: Offset: {{[0-9A-F]+}}
+# SEC-NEXT: Size: 24
+# SEC-NEXT: Link: 0
+# SEC-NEXT: Info: 0
+# SEC-NEXT: AddressAlignment: 4
+# SEC-NEXT: EntrySize: 24
-# CHECK: SYMBOL TABLE:
-# CHECK: 00008ff0 g *ABS* 00000000 _gp
+# RAW: Contents of section .reginfo:
+# RAW-NEXT: 00b4 f0000001 e0000002 d0000003 c0000004
+# RAW-NEXT: 00c4 b0000005 f08f0000
+
+# RAW: SYMBOL TABLE:
+# RAW: 00008ff0 g *ABS* 00000000 _gp
# t1.o
---
More information about the llvm-commits
mailing list