1 ; RUN: llc < %s -mtriple=arm64-linux-gnu | FileCheck %s
3 define i64 @get_stack() nounwind {
5 ; CHECK-LABEL: get_stack:
7 %sp = call i64 @llvm.read_register.i64(metadata !0)
11 define void @set_stack(i64 %val) nounwind {
13 ; CHECK-LABEL: set_stack:
15 call void @llvm.write_register.i64(metadata !0, i64 %val)
19 declare i64 @llvm.read_register.i64(metadata) nounwind
20 declare void @llvm.write_register.i64(metadata, i64) nounwind
22 ; register unsigned long current_stack_pointer asm("sp");
23 ; CHECK-NOT: .asciz "sp"