mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 00:12:50 +01:00
3237e667f1
Make sure functions located in user specified text sections (via the section attribute) are located together with the default text sections. Otherwise, for large object files, the relocations for call instructions are more likely to be out of range. This becomes even more likely in the presence of LTO. rdar://12402636 llvm-svn: 165254
22 lines
669 B
LLVM
22 lines
669 B
LLVM
; RUN: llc < %s -mtriple=armv7-apple-darwin | FileCheck %s
|
|
|
|
; CHECK: .section __TEXT,__text,regular,pure_instructions
|
|
; CHECK: .section __TEXT,myprecious
|
|
; CHECK: .section __TEXT,__textcoal_nt,coalesced,pure_instructions
|
|
; CHECK: .section __TEXT,__const_coal,coalesced
|
|
; CHECK: .section __TEXT,__picsymbolstub4,symbol_stubs,none,16
|
|
; CHECK: .section __TEXT,__StaticInit,regular,pure_instructions
|
|
|
|
|
|
define void @normal() nounwind readnone {
|
|
; CHECK: .section __TEXT,__text,regular,pure_instructions
|
|
; CHECK: _normal:
|
|
ret void
|
|
}
|
|
|
|
define void @special() nounwind readnone section "__TEXT,myprecious" {
|
|
; CHECK: .section __TEXT,myprecious
|
|
; CHECK: _special:
|
|
ret void
|
|
}
|