-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARC] Add support for llvm.thread.pointer.
Differential Revision: http://reviews.llvm.org/D19387 llvm-svn: 267544
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
; RUN: llc < %s -mtriple=sparc-unknown-linux-gnu | FileCheck %s | ||
; RUN: llc < %s -mtriple=sparc64-unknown-linux-gnu | FileCheck %s | ||
|
||
; Function Attrs: nounwind readnone | ||
declare i8* @llvm.thread.pointer() #1 | ||
|
||
define i8* @thread_pointer() { | ||
; CHECK: mov %g7, %o0 | ||
%1 = tail call i8* @llvm.thread.pointer() | ||
ret i8* %1 | ||
} |