]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/AArch64/arm64-builtins-linux.ll
Vendor import of llvm trunk r300422:
[FreeBSD/FreeBSD.git] / test / CodeGen / AArch64 / arm64-builtins-linux.ll
1 ; RUN: llc < %s -mtriple=aarch64-linux-gnu | FileCheck %s
2 ; RUN: llc < %s -mtriple=aarch64-fuchsia | FileCheck %s
3 ; RUN: llc < %s -mtriple=aarch64-fuchsia -code-model=kernel | FileCheck --check-prefix=FUCHSIA-KERNEL %s
4
5 ; Function Attrs: nounwind readnone
6 declare i8* @llvm.thread.pointer() #1
7
8 define i8* @thread_pointer() {
9 ; CHECK: thread_pointer:
10 ; CHECK: mrs {{x[0-9]+}}, TPIDR_EL0
11 ; FUCHSIA-KERNEL: thread_pointer:
12 ; FUCHSIA-KERNEL: mrs {{x[0-9]+}}, TPIDR_EL1
13   %1 = tail call i8* @llvm.thread.pointer()
14   ret i8* %1
15 }