xref: /llvm-project/llvm/test/CodeGen/SystemZ/builtins.ll (revision a1710eb3cd5823c5d14899112ca3086acbdbe9cb)
1; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
2
3; Function Attrs: nounwind readnone
4declare ptr @llvm.thread.pointer() #1
5
6define ptr @thread_pointer() {
7; CHECK: thread_pointer:
8; CHECK: ear [[REG1:%r[0-5]]], %a0
9; CHECK: sllg %r2, [[REG1]], 32
10; CHECK: ear %r2, %a1
11; CHECK: br %r14
12  %1 = tail call ptr @llvm.thread.pointer()
13  ret ptr %1
14}
15