diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-08 00:00:28 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-08 00:00:28 +0000 |
commit | 00be34d009f15ac24863dfa8ebee09941a6fb440 (patch) | |
tree | df61fa4da455e4e24cdd52b79ee9341b64bcadd4 | |
parent | 0921bfdf367c2204beff70510c6c353f8bbae770 (diff) | |
download | bcm5719-llvm-00be34d009f15ac24863dfa8ebee09941a6fb440.tar.gz bcm5719-llvm-00be34d009f15ac24863dfa8ebee09941a6fb440.zip |
MC-COFF: Add test for my last commit.
llvm-svn: 116015
-rw-r--r-- | llvm/test/MC/COFF/simple-fixups.ll | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/llvm/test/MC/COFF/simple-fixups.ll b/llvm/test/MC/COFF/simple-fixups.ll new file mode 100644 index 00000000000..c2fb42ebf93 --- /dev/null +++ b/llvm/test/MC/COFF/simple-fixups.ll @@ -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 = [ |