You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
352 B
16 lines
352 B
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
|
|
|
|
define i8* @get_stack() nounwind {
|
|
entry:
|
|
; CHECK-LABEL: get_stack:
|
|
; CHECK: lgr %r2, %r15
|
|
; CHECK-NEXT: br %r14
|
|
%0 = call i64 @llvm.read_register.i64(metadata !0)
|
|
%1 = inttoptr i64 %0 to i8*
|
|
ret i8* %1
|
|
}
|
|
|
|
declare i64 @llvm.read_register.i64(metadata) nounwind
|
|
|
|
!0 = !{!"r15"}
|