blob: c2fb42ebf93a7b5c021e5287fcf878f0e3512c51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 = [
|