mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
MC-COFF: Add test for my last commit.
llvm-svn: 116015
This commit is contained in:
parent
72e7e84c3f
commit
452789b5c0
29
test/MC/COFF/simple-fixups.ll
Normal file
29
test/MC/COFF/simple-fixups.ll
Normal file
@ -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 = [
|
Loading…
Reference in New Issue
Block a user