llvm/test/CodeGen/X86/ms-inline-asm.ll
Chad Rosier 3b132fab0b [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
2012-09-10 21:10:49 +00:00

15 lines
384 B
LLVM

; 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
}