20 lines · plain
1; RUN: llc < %s -frame-pointer=all -mtriple=i686-- | FileCheck %s --check-prefix=CHECK-X862; RUN: llc < %s -frame-pointer=all -mtriple=x86_64-- | FileCheck %s --check-prefix=CHECK-X643 4define ptr @f() nounwind readnone optsize {5entry:6 %0 = tail call ptr @llvm.addressofreturnaddress() ; <ptr> [#uses=1]7 ret ptr %08 ; CHECK-X86-LABEL: f:9 ; CHECK-X86: pushl %ebp10 ; CHECK-X86: movl %esp, %ebp11 ; CHECK-X86: leal 4(%ebp), %eax12 13 ; CHECK-X64-LABEL: f:14 ; CHECK-X64: pushq %rbp15 ; CHECK-X64: movq %rsp, %rbp16 ; CHECK-X64: leaq 8(%rbp), %rax17}18 19declare ptr @llvm.addressofreturnaddress() nounwind readnone20