mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116015 91177308-0d34-0410-b5e6-96231b3b80d8
30 lines
593 B
LLVM
30 lines
593 B
LLVM
; 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 = [
|