summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/ms-inline-asm.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-09-10 21:10:49 +0000
committerChad Rosier <mcrosier@apple.com>2012-09-10 21:10:49 +0000
commit3b132fab0bebe7186348d7ab0e2663c9fddab3bb (patch)
treec44bbb6f75d830c2c824e17e194d4a645d4233b9 /test/CodeGen/X86/ms-inline-asm.ll
parent3c4ecd7dab5567017ad573769b0af484479bac6f (diff)
downloadllvm-3b132fab0bebe7186348d7ab0e2663c9fddab3bb.tar.gz
llvm-3b132fab0bebe7186348d7ab0e2663c9fddab3bb.tar.bz2
llvm-3b132fab0bebe7186348d7ab0e2663c9fddab3bb.tar.xz
[ms-inline asm] Pass the correct AsmVariant to the PrintAsmOperand() function
and update the printOperand() function accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/ms-inline-asm.ll')
-rw-r--r--test/CodeGen/X86/ms-inline-asm.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/ms-inline-asm.ll b/test/CodeGen/X86/ms-inline-asm.ll
new file mode 100644
index 0000000000..7e56f48cfe
--- /dev/null
+++ b/test/CodeGen/X86/ms-inline-asm.ll
@@ -0,0 +1,14 @@
+; RUN: llc < %s -march=x86 | FileCheck %s
+
+define i32 @t1() nounwind {
+entry:
+ %0 = tail call i32 asm sideeffect inteldialect "mov eax, $1\0Amov $0, eax", "=r,r,~{eax},~{dirflag},~{fpsr},~{flags}"(i32 1) nounwind
+ ret i32 %0
+; CHECK: _t1
+; CHECK: ## InlineAsm Start
+; FIXME: .intel_syntax
+; CHECK: mov eax, ecx
+; CHECK: mov ecx, eax
+; FIXME: .att_syntax
+; CHECK: ## InlineAsm End
+}