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

Unified Diff: test/NaCl/X86/asm_mplus.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/asm_memory.ll ('k') | test/NaCl/X86/dynamic-stack-alloc.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/X86/asm_mplus.ll
diff --git a/test/NaCl/X86/asm_mplus.ll b/test/NaCl/X86/asm_mplus.ll
new file mode 100644
index 0000000000000000000000000000000000000000..2b002c70257b92d5abb9afbac30b450d23aeae2f
--- /dev/null
+++ b/test/NaCl/X86/asm_mplus.ll
@@ -0,0 +1,14 @@
+; RUN: pnacl-llc -mtriple=x86_64-unknown-nacl -filetype=asm %s -o - \
+; RUN: | FileCheck %s
+
+target datalayout = "e-m:e-p:32:32-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64--nacl"
+
+; Test that we can handle 2 memory constraints in one inline asm
+define i32 @f(i32* %a, i32 %b) {
+entry:
+; CHECK: lock
+; CHECK: xaddl %e{{[a-z]*}}, %nacl:(%r15,%r{{[a-z]*}})
+ %r = call i32 asm sideeffect "lock; xaddl $0, $1", "=r,=*m,0,*m,~{memory},~{dirflag},~{fpsr},~{flags}"(i32* %a, i32 %b, i32* %a)
+ ret i32 %r
+}
« no previous file with comments | « test/NaCl/X86/asm_memory.ll ('k') | test/NaCl/X86/dynamic-stack-alloc.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698