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

Side by Side Diff: test/NaCl/X86/dynamic-stack-alloc2.ll

Issue 1137803004: Add support for using MI bundles as bundle-locked groups on x86 (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: review Created 5 years, 7 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 | « lib/Target/X86/X86NaClRewritePass.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; RUN: llc -mtriple=x86_64-nacl %s -o - | FileCheck %s
2
3 target datalayout = "e-p:32:32-i64:64-n32"
4 target triple = "le32-unknown-nacl"
5
6 ; CHECK-LABEL: @foo
7 ; CHECK: .bundle_lock
8 ; CHECK: leal -16({{.*}}), %esp
9 ; CHECK: addq %r15, %rsp
10 ; CHECK: .bundle_unlock
11 define hidden void @foo() {
12 entry:
13 br label %bb1
14 ; The alloca must be in a non-entry block so it gets lowered in the dag as
15 ; a dynamic_stackalloc node
16 bb1:
17 %0 = alloca i8, i32 16, align 16
18 %1 = load i8, i8* %0, align 1
19 %call5 = call i32 @bar(i8 %1)
20 unreachable
21 }
22
23 declare hidden i32 @bar(i8)
OLDNEW
« no previous file with comments | « lib/Target/X86/X86NaClRewritePass.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698