Home | History | Annotate | Download | only in AArch64
      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 }
     16