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

Unified Diff: test/NaCl/X86/stack-adjust.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/NaCl/X86/ro-jumptable.ll ('k') | test/Transforms/InstCombine/overflow.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/X86/stack-adjust.ll
diff --git a/test/NaCl/X86/stack-adjust.ll b/test/NaCl/X86/stack-adjust.ll
new file mode 100644
index 0000000000000000000000000000000000000000..c21a3e42bfacf6b6c8ba66e2d0c4ebf3141dd658
--- /dev/null
+++ b/test/NaCl/X86/stack-adjust.ll
@@ -0,0 +1,12 @@
+; RUN: llc -mtriple=x86_64-pc-nacl -force-align-stack %s -o - | FileCheck %s
+
+; Check that stack alignment (ANDri32 with the stack pointer) expands to
+; the bundle-locked adjustment for asm output, instead of a naclandsp pseudo
+define void @stackalign () {
+; CHECK-LABEL: stackalign
+ ret void
+; CHECK: .bundle_lock
+; CHECK-NEXT: andl $-8, %esp
+; CHECK-NEXT: leaq (%rsp,%r15), %rsp
+; CHECK-NEXT: .bundle_unlock
+}
« no previous file with comments | « test/NaCl/X86/ro-jumptable.ll ('k') | test/Transforms/InstCombine/overflow.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698