mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
659464b45b
TargetMachine::shouldAssumeDSOLocal currently implies dso_local for such definitions. Adding explicit dso_local makes these tests align with the clang -fpic behavior and allow the removal of the TargetMachine::shouldAssumeDSOLocal special case. Rewrite preemption.ll to dsolocal-static.ll and dsolocal-pic.ll, and add "PIC Level" metadata.
17 lines
299 B
LLVM
17 lines
299 B
LLVM
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-pc-linux -relocation-model=pic | FileCheck %s
|
|
|
|
|
|
define dso_local void @f() {
|
|
ret void
|
|
}
|
|
|
|
define dso_local void @g() {
|
|
; CHECK: g:
|
|
; CHECK: bl f{{$}}
|
|
call void @f()
|
|
ret void
|
|
}
|
|
|
|
!llvm.module.flags = !{!0}
|
|
!0 = !{i32 1, !"PIE Level", i32 1}
|