[llvm-commits] [llvm] r116015 - /llvm/trunk/test/MC/COFF/simple-fixups.ll

Michael J. Spencer bigcheesegs at gmail.com
Thu Oct 7 17:00:28 PDT 2010


Author: mspencer
Date: Thu Oct  7 19:00:28 2010
New Revision: 116015

URL: http://llvm.org/viewvc/llvm-project?rev=116015&view=rev
Log:
MC-COFF: Add test for my last commit.

Added:
    llvm/trunk/test/MC/COFF/simple-fixups.ll

Added: llvm/trunk/test/MC/COFF/simple-fixups.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/COFF/simple-fixups.ll?rev=116015&view=auto
==============================================================================
--- llvm/trunk/test/MC/COFF/simple-fixups.ll (added)
+++ llvm/trunk/test/MC/COFF/simple-fixups.ll Thu Oct  7 19:00:28 2010
@@ -0,0 +1,29 @@
+; The purpose of this test is to verify that we do not produce unneeded
+; relocations when symbols are in the same section and we know their offset.
+
+; RUN: llc -filetype=obj -mtriple i686-pc-win32 %s -o - | coff-dump.py | FileCheck %s
+; RUN: llc -filetype=obj -mtriple x86_64-pc-win32 %s -o - | coff-dump.py | FileCheck %s
+
+define void @foo() {
+e:
+  br label %i
+i:
+  br label %i
+}
+
+define void @bar() {
+e:
+  br label %i
+i:
+  br label %i
+}
+
+define void @baz() {
+e:
+  call void @baz()
+  ret void
+}
+
+; CHECK:     Sections = [
+; CHECK-NOT: NumberOfRelocations = {{[^0]}}
+; CHECK:     Symbols = [





More information about the llvm-commits mailing list