diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-01-10 22:10:27 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-01-10 22:10:27 +0000 |
commit | c1ec207b615cb058d30dc642ee311ed06fe59cfe (patch) | |
tree | 095d4d76964f829b11bfa53361d3c2b80da7ef08 /test/CodeGen/X86 | |
parent | 48fdf9b37926a9c3debd3f0b5814a2a4b6bb5097 (diff) | |
download | external_llvm-c1ec207b615cb058d30dc642ee311ed06fe59cfe.zip external_llvm-c1ec207b615cb058d30dc642ee311ed06fe59cfe.tar.gz external_llvm-c1ec207b615cb058d30dc642ee311ed06fe59cfe.tar.bz2 |
[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')
-rw-r--r-- | test/CodeGen/X86/ms-inline-asm.ll | 18 |
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 24d28ad..9bca1ac 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}} +} |