mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
c0f4632683
TargetMachine::shouldAssumeDSOLocal currently implies dso_local for such definitions. Adding explicit dso_local makes these tests align with the clang -fno-pic behavior and allow the removal of the TargetMachine::shouldAssumeDSOLocal special case. Split tiny_model.ll to tiny-model-{static,pic}.ll
18 lines
480 B
LLVM
18 lines
480 B
LLVM
; RUN: llc -verify-machineinstrs -o - %s -mtriple=aarch64-linux-gnu -aarch64-enable-atomic-cfg-tidy=0 | FileCheck %s
|
|
|
|
@stored_label = dso_local global i8* null
|
|
|
|
define dso_local void @foo() {
|
|
; CHECK-LABEL: foo:
|
|
%lab = load i8*, i8** @stored_label
|
|
indirectbr i8* %lab, [label %otherlab, label %retlab]
|
|
; CHECK: adrp {{x[0-9]+}}, stored_label
|
|
; CHECK: ldr {{x[0-9]+}}, [{{x[0-9]+}}, {{#?}}:lo12:stored_label]
|
|
; CHECK: br {{x[0-9]+}}
|
|
|
|
otherlab:
|
|
ret void
|
|
retlab:
|
|
ret void
|
|
}
|