diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-09-11 19:09:56 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-09-11 19:09:56 +0000 |
commit | a7b159ccdd3531853dc49dd91cf8948ce382e1c1 (patch) | |
tree | b5dbf4a03bd72b5d1fefa34147bd1d43484c654d /test/CodeGen/X86/ms-inline-asm.ll | |
parent | 020aba0c3b6092e353e133446cb6453f95f0d61b (diff) | |
download | external_llvm-a7b159ccdd3531853dc49dd91cf8948ce382e1c1.zip external_llvm-a7b159ccdd3531853dc49dd91cf8948ce382e1c1.tar.gz external_llvm-a7b159ccdd3531853dc49dd91cf8948ce382e1c1.tar.bz2 |
[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.ll | 12 |
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 8db8658..cd06fe6 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}} +} |