Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: test/CodeGen/X86/x86-64-stack-and-frame-ptr.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/CodeGen/X86/lea-5.ll ('k') | test/MC/ARM/elf-note-nacl.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; RUN: llc -mtriple=x86_64-pc-linux < %s | FileCheck %s 1 ; RUN: llc -mtriple=x86_64-pc-linux < %s | FileCheck %s
2 ; RUN: llc -mtriple=x86_64-pc-linux-gnux32 < %s | FileCheck -check-prefix=X32ABI %s 2 ; RUN: llc -mtriple=x86_64-pc-linux-gnux32 < %s | FileCheck -check-prefix=X32ABI %s
3 ; RUN: llc -mtriple=x86_64-pc-nacl < %s | FileCheck -check-prefix=NACL %s 3 ; RUN: llc -mtriple=x86_64-pc-nacl < %s | FileCheck -check-prefix=NACL %s
4 4
5 ; x32 uses %esp, %ebp as stack and frame pointers 5 ; x32 uses %esp, %ebp as stack and frame pointers
6 6
7 ; CHECK-LABEL: foo 7 ; CHECK-LABEL: foo
8 ; CHECK: pushq %rbp 8 ; CHECK: pushq %rbp
9 ; CHECK: movq %rsp, %rbp 9 ; CHECK: movq %rsp, %rbp
10 ; CHECK: movq %rdi, -8(%rbp) 10 ; CHECK: movq %rdi, -8(%rbp)
11 ; CHECK: popq %rbp 11 ; CHECK: popq %rbp
12 ; X32ABI-LABEL: foo 12 ; X32ABI-LABEL: foo
13 ; X32ABI: pushq %rbp 13 ; X32ABI: pushq %rbp
14 ; X32ABI: movl %esp, %ebp 14 ; X32ABI: movl %esp, %ebp
15 ; X32ABI: movl %edi, -4(%ebp) 15 ; X32ABI: movl %edi, -4(%ebp)
16 ; X32ABI: popq %rbp 16 ; X32ABI: popq %rbp
17 ; @LOCALMOD for sandbox base address hiding.
17 ; NACL-LABEL: foo 18 ; NACL-LABEL: foo
18 ; NACL: pushq %rbp 19 ; NACL: movl %ebp, %e[[REG:.*]]
20 ; NACL: pushq %r[[REG]]
19 ; NACL: movq %rsp, %rbp 21 ; NACL: movq %rsp, %rbp
20 ; NACL: movl %edi, -4(%rbp) 22 ; NACL: movl %edi, -4(%rbp)
21 ; NACL: popq %rbp 23 ; NACL: naclrestbp (%rsp), %r15
22 24
23 25
24 define void @foo(i32* %a) #0 { 26 define void @foo(i32* %a) #0 {
25 entry: 27 entry:
26 %a.addr = alloca i32*, align 4 28 %a.addr = alloca i32*, align 4
27 %b = alloca i32*, align 4 29 %b = alloca i32*, align 4
28 store i32* %a, i32** %a.addr, align 4 30 store i32* %a, i32** %a.addr, align 4
29 ret void 31 ret void
30 } 32 }
31 33
32 attributes #0 = { nounwind uwtable "no-frame-pointer-elim"="true" "no-frame-poin ter-elim-non-leaf"} 34 attributes #0 = { nounwind uwtable "no-frame-pointer-elim"="true" "no-frame-poin ter-elim-non-leaf"}
33 35
34 36
OLDNEW
« no previous file with comments | « test/CodeGen/X86/lea-5.ll ('k') | test/MC/ARM/elf-note-nacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698