diff options
Diffstat (limited to 'test/CodeGen/SystemZ/builtins.ll')
-rw-r--r-- | test/CodeGen/SystemZ/builtins.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/SystemZ/builtins.ll b/test/CodeGen/SystemZ/builtins.ll new file mode 100644 index 0000000000000..86546c08488aa --- /dev/null +++ b/test/CodeGen/SystemZ/builtins.ll @@ -0,0 +1,14 @@ +; 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 +} |