17 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=hexagon < %s | FileCheck %s3;4; This test verifies the thread pointer intrinsic implementation for Hexagon.5; The thread pointer (UGP register) is used to access thread-local storage.6 7declare ptr @llvm.thread.pointer() nounwind readnone8 9define ptr @thread_pointer() nounwind {10; CHECK-LABEL: thread_pointer:11; CHECK: // %bb.0:12; CHECK: r0 = ugp13; CHECK-NEXT: jumpr r3114 %1 = tail call ptr @llvm.thread.pointer()15 ret ptr %116}17