view test/CodeGen/AArch64/arm64-builtins-linux.ll @ 100:7d135dc70f03 LLVM 3.9

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents afa8332a0e37
children 1172e4bd9c6f
line wrap: on
line source

; RUN: llc < %s -march=aarch64 -mtriple=aarch64-linux-gnu | FileCheck %s

; Function Attrs: nounwind readnone
declare i8* @llvm.aarch64.thread.pointer() #1

define i8* @thread_pointer() {
; CHECK: thread_pointer:
; CHECK: mrs {{x[0-9]+}}, TPIDR_EL0
  %1 = tail call i8* @llvm.aarch64.thread.pointer()
  ret i8* %1
}