1 ; RUN: llc -verify-machineinstrs -mtriple=x86_64-pc-linux < %s | FileCheck %s
2 ; RUN: llc -verify-machineinstrs -mtriple=x86_64-pc-linux-gnux32 < %s | FileCheck -check-prefix=X32ABI %s
3 ; RUN: llc -verify-machineinstrs -mtriple=x86_64-pc-nacl < %s | FileCheck -check-prefix=NACL %s
5 ; x32 uses %esp, %ebp as stack and frame pointers
9 ; CHECK: movq %rsp, %rbp
10 ; CHECK: movq %rdi, -8(%rbp)
14 ; X32ABI: movl %esp, %ebp
15 ; X32ABI: movl %edi, -4(%ebp)
19 ; NACL: movq %rsp, %rbp
20 ; NACL: movl %edi, -4(%rbp)
24 define void @foo(ptr %a) #0 {
26 %a.addr = alloca ptr, align 4
27 %b = alloca ptr, align 4
28 store ptr %a, ptr %a.addr, align 4
32 attributes #0 = { nounwind uwtable "frame-pointer"="all"}