summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/ms-inline-asm.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-09-11 19:09:56 +0000
committerChad Rosier <mcrosier@apple.com>2012-09-11 19:09:56 +0000
commita7b159ccdd3531853dc49dd91cf8948ce382e1c1 (patch)
treeb5dbf4a03bd72b5d1fefa34147bd1d43484c654d /test/CodeGen/X86/ms-inline-asm.ll
parent020aba0c3b6092e353e133446cb6453f95f0d61b (diff)
downloadllvm-a7b159ccdd3531853dc49dd91cf8948ce382e1c1.tar.gz
llvm-a7b159ccdd3531853dc49dd91cf8948ce382e1c1.tar.bz2
llvm-a7b159ccdd3531853dc49dd91cf8948ce382e1c1.tar.xz
[ms-inline asm] Split the parsing of IR asm strings into GCC and MS variants.
Add support in the EmitMSInlineAsmStr() function for handling integer consts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/ms-inline-asm.ll')
-rw-r--r--test/CodeGen/X86/ms-inline-asm.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/ms-inline-asm.ll b/test/CodeGen/X86/ms-inline-asm.ll
index 8db86580a6..cd06fe68a6 100644
--- a/test/CodeGen/X86/ms-inline-asm.ll
+++ b/test/CodeGen/X86/ms-inline-asm.ll
@@ -12,3 +12,15 @@ entry:
; CHECK: .att_syntax
; CHECK: {{## InlineAsm End|#NO_APP}}
}
+
+define void @t2() nounwind {
+entry:
+ call void asm sideeffect inteldialect "mov eax, $$1", "~{eax},~{dirflag},~{fpsr},~{flags}"() nounwind
+ ret void
+; CHECK: t2
+; CHECK: {{## InlineAsm Start|#APP}}
+; CHECK: .intel_syntax
+; CHECK: mov eax, 1
+; CHECK: .att_syntax
+; CHECK: {{## InlineAsm End|#NO_APP}}
+}