brintos

brintos / llvm-project-archived public Read only

0
0
Text · 995 B · 679e4ac Raw
25 lines · plain
1; RUN: llc < %s -mtriple=aarch64-linux-gnu | FileCheck %s2; RUN: llc < %s -mtriple=aarch64-fuchsia | FileCheck %s3; RUN: llc < %s -mtriple=aarch64-linux-gnu -mattr=+tpidrro-el0 | FileCheck --check-prefix=USEROEL0 %s4; RUN: llc < %s -mtriple=aarch64-linux-gnu -mattr=+tpidr-el1 | FileCheck --check-prefix=USEEL1 %s5; RUN: llc < %s -mtriple=aarch64-linux-gnu -mattr=+tpidr-el2 | FileCheck --check-prefix=USEEL2 %s6; RUN: llc < %s -mtriple=aarch64-linux-gnu -mattr=+tpidr-el3 | FileCheck --check-prefix=USEEL3 %s7 8; Function Attrs: nounwind readnone9declare ptr @llvm.thread.pointer() #110 11define ptr @thread_pointer() {12; CHECK: thread_pointer:13; CHECK: mrs {{x[0-9]+}}, TPIDR_EL014; USEROEL0: thread_pointer:15; USEROEL0: mrs {{x[0-9]+}}, TPIDRRO_EL016; USEEL1: thread_pointer:17; USEEL1: mrs {{x[0-9]+}}, TPIDR_EL118; USEEL2: thread_pointer:19; USEEL2: mrs {{x[0-9]+}}, TPIDR_EL220; USEEL3: thread_pointer:21; USEEL3: mrs {{x[0-9]+}}, TPIDR_EL322  %1 = tail call ptr @llvm.thread.pointer()23  ret ptr %124}25