1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/CodeGen/SystemZ/builtins.ll
Marcin Koscielnicki 64bfaf0336 [SystemZ] Add support for llvm.thread.pointer intrinsic.
Differential Revision: http://reviews.llvm.org/D19054

llvm-svn: 266844
2016-04-20 01:03:48 +00:00

15 lines
353 B
LLVM

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