1 ; RUN: llc < %s -frame-pointer=all -mtriple=i686-- | FileCheck %s --check-prefix=CHECK-X86
2 ; RUN: llc < %s -frame-pointer=all -mtriple=x86_64-- | FileCheck %s --check-prefix=CHECK-X64
4 define ptr @f() nounwind readnone optsize {
6 %0 = tail call ptr @llvm.addressofreturnaddress() ; <ptr> [#uses=1]
9 ; CHECK-X86: pushl %ebp
10 ; CHECK-X86: movl %esp, %ebp
11 ; CHECK-X86: leal 4(%ebp), %eax
14 ; CHECK-X64: pushq %rbp
15 ; CHECK-X64: movq %rsp, %rbp
16 ; CHECK-X64: leaq 8(%rbp), %rax
19 declare ptr @llvm.addressofreturnaddress() nounwind readnone