1; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s 2 3define i8* @get_stack() nounwind { 4entry: 5; CHECK-LABEL: get_stack: 6; CHECK: lgr %r2, %r15 7; CHECK-NEXT: br %r14 8 %0 = call i64 @llvm.read_register.i64(metadata !0) 9 %1 = inttoptr i64 %0 to i8* 10 ret i8* %1 11} 12 13declare i64 @llvm.read_register.i64(metadata) nounwind 14 15!0 = !{!"r15"} 16