2017-01-02 19:17:04 +00:00
|
|
|
; RUN: llc < %s -mtriple=aarch64-linux-gnu | FileCheck %s
|
2015-12-30 11:46:15 +00:00
|
|
|
|
|
|
|
; Function Attrs: nounwind readnone
|
2016-07-23 20:41:05 +00:00
|
|
|
declare i8* @llvm.thread.pointer() #1
|
2015-12-30 11:46:15 +00:00
|
|
|
|
|
|
|
define i8* @thread_pointer() {
|
|
|
|
; CHECK: thread_pointer:
|
|
|
|
; CHECK: mrs {{x[0-9]+}}, TPIDR_EL0
|
2016-07-23 20:41:05 +00:00
|
|
|
%1 = tail call i8* @llvm.thread.pointer()
|
2015-12-30 11:46:15 +00:00
|
|
|
ret i8* %1
|
|
|
|
}
|