forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's almost certainly not a good idea to actually use it in most cases (there's a pretty large code size overhead on AArch64), but we can't do those experiments until it's supported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300462 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
f1a890d
commit a017dc6
Showing
4 changed files
with
67 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
; RUN: llc -mtriple=aarch64-apple-ios %s -o - | FileCheck %s | ||
|
||
define void @local() nonlazybind { | ||
ret void | ||
} | ||
|
||
declare void @nonlocal() nonlazybind | ||
|
||
define void @test_laziness() { | ||
; CHECK-LABEL: test_laziness: | ||
|
||
; CHECK: bl _local | ||
|
||
; CHECK: adrp x[[TMP:[0-9]+]], _nonlocal@GOTPAGE | ||
; CHECK: ldr [[FUNC:x[0-9]+]], [x[[TMP]], _nonlocal@GOTPAGEOFF] | ||
; CHECK: blr [[FUNC]] | ||
|
||
call void @local() | ||
call void @nonlocal() | ||
ret void | ||
} | ||
|
||
define void @test_laziness_tail() { | ||
; CHECK-LABEL: test_laziness_tail: | ||
|
||
; CHECK: adrp x[[TMP:[0-9]+]], _nonlocal@GOTPAGE | ||
; CHECK: ldr [[FUNC:x[0-9]+]], [x[[TMP]], _nonlocal@GOTPAGEOFF] | ||
; CHECK: br [[FUNC]] | ||
|
||
tail call void @nonlocal() | ||
ret void | ||
} |