1 ; RUN: llc < %s -march=x86-64 | FileCheck %s 2 3 ; CHECK: stack_end_address 4 ; CHECK: {{movq.+rbp.*$}} 5 ; CHECK: {{movq.+rbp.*$}} 6 ; CHECK: ret 7 8 define i64* @stack_end_address() nounwind { 9 entry: 10 tail call i8* @llvm.frameaddress( i32 0 ) 11 bitcast i8* %0 to i64* 12 ret i64* %1 13 } 14 15 declare i8* @llvm.frameaddress(i32) nounwind readnone 16