[llvm] r197828 - Add the .secidx test I've forgotten to svn add in 197826

Timur Iskhodzhanov timurrrr at google.com
Fri Dec 20 11:06:50 PST 2013


Author: timurrrr
Date: Fri Dec 20 13:06:50 2013
New Revision: 197828

URL: http://llvm.org/viewvc/llvm-project?rev=197828&view=rev
Log:
Add the .secidx test I've forgotten to svn add in 197826

Added:
    llvm/trunk/test/MC/COFF/secidx.s

Added: llvm/trunk/test/MC/COFF/secidx.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/COFF/secidx.s?rev=197828&view=auto
==============================================================================
--- llvm/trunk/test/MC/COFF/secidx.s (added)
+++ llvm/trunk/test/MC/COFF/secidx.s Fri Dec 20 13:06:50 2013
@@ -0,0 +1,16 @@
+// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -s -sr | FileCheck %s
+
+// check that we produce the correct relocation for .secidx
+
+Lfoo:
+	.secidx	Lfoo
+	.secidx	Lbar
+
+.section spam
+Lbar:
+	ret
+
+// CHECK:       Relocations [
+// CHECK-NEXT:    0x0 IMAGE_REL_I386_SECTION .text
+// CHECK-NEXT:    0x4 IMAGE_REL_I386_SECTION spam
+// CHECK-NEXT:  ]





More information about the llvm-commits mailing list