1 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
3 ; Function Attrs: nounwind readnone
4 declare ptr @llvm.thread.pointer() #1
6 define ptr @thread_pointer() {
7 ; CHECK: thread_pointer:
8 ; CHECK: ear [[REG1:%r[0-5]]], %a0
9 ; CHECK: sllg %r2, [[REG1]], 32
12 %1 = tail call ptr @llvm.thread.pointer()