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