summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/ms-inline-asm.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-01-10 22:10:27 +0000
committerChad Rosier <mcrosier@apple.com>2013-01-10 22:10:27 +0000
commitc1ec207b615cb058d30dc642ee311ed06fe59cfe (patch)
tree095d4d76964f829b11bfa53361d3c2b80da7ef08 /test/CodeGen/X86/ms-inline-asm.ll
parent48fdf9b37926a9c3debd3f0b5814a2a4b6bb5097 (diff)
downloadllvm-c1ec207b615cb058d30dc642ee311ed06fe59cfe.tar.gz
llvm-c1ec207b615cb058d30dc642ee311ed06fe59cfe.tar.bz2
llvm-c1ec207b615cb058d30dc642ee311ed06fe59cfe.tar.xz
[ms-inline asm] Add support for calling functions from inline assembly.
Part of rdar://12991541 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/ms-inline-asm.ll')
-rw-r--r--test/CodeGen/X86/ms-inline-asm.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/X86/ms-inline-asm.ll b/test/CodeGen/X86/ms-inline-asm.ll
index 24d28adda8..9bca1acf65 100644
--- a/test/CodeGen/X86/ms-inline-asm.ll
+++ b/test/CodeGen/X86/ms-inline-asm.ll
@@ -61,3 +61,21 @@ entry:
; CHECK: .att_syntax
; CHECK: {{## InlineAsm End|#NO_APP}}
}
+
+define void @t19_helper() nounwind {
+entry:
+ ret void
+}
+
+define void @t19() nounwind {
+entry:
+ call void asm sideeffect inteldialect "call $0", "r,~{dirflag},~{fpsr},~{flags}"(void ()* @t19_helper) nounwind
+ ret void
+; CHECK: t19
+; CHECK: movl $_t19_helper, %eax
+; CHECK: {{## InlineAsm Start|#APP}}
+; CHECK: .intel_syntax
+; CHECK: call eax
+; CHECK: .att_syntax
+; CHECK: {{## InlineAsm End|#NO_APP}}
+}