2015-07-28 21:03:31 +08:00
|
|
|
; RUN: llc < %s -march=aarch64 -mtriple=aarch64-linux-gnu | FileCheck %s
|
|
|
|
|
|
|
|
; Function Attrs: nounwind readnone
|
2016-04-20 04:51:05 +08:00
|
|
|
declare i8* @llvm.thread.pointer() #1
|
2015-07-28 21:03:31 +08:00
|
|
|
|
|
|
|
define i8* @thread_pointer() {
|
|
|
|
; CHECK: thread_pointer:
|
|
|
|
; CHECK: mrs {{x[0-9]+}}, TPIDR_EL0
|
2016-04-20 04:51:05 +08:00
|
|
|
%1 = tail call i8* @llvm.thread.pointer()
|
2015-07-28 21:03:31 +08:00
|
|
|
ret i8* %1
|
|
|
|
}
|