summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
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
commitdb20a41d991c3471968cd26cf9017e811380ba31 (patch)
tree3679c138439f719af6a0936fd7254daef6092ef3 /llvm/test/CodeGen
parent6b152ff550e68f09719985258e7fa4dc1bfe482e (diff)
downloadbcm5719-llvm-db20a41d991c3471968cd26cf9017e811380ba31.tar.gz
bcm5719-llvm-db20a41d991c3471968cd26cf9017e811380ba31.zip
[ms-inline asm] Pass the correct AsmVariant to the PrintAsmOperand() function
and update the printOperand() function accordingly. llvm-svn: 163544
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/ms-inline-asm.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/ms-inline-asm.ll b/llvm/test/CodeGen/X86/ms-inline-asm.ll
new file mode 100644
index 00000000000..7e56f48cfe3
--- /dev/null
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud