[ms-inline asm] Properly emit the asm directives when the AsmPrinterVariant
[oota-llvm.git] / test / CodeGen / X86 / ms-inline-asm.ll
1 ; RUN: llc < %s -march=x86 | FileCheck %s
2
3 define i32 @t1() nounwind {
4 entry:
5   %0 = tail call i32 asm sideeffect inteldialect "mov eax, $1\0Amov $0, eax", "=r,r,~{eax},~{dirflag},~{fpsr},~{flags}"(i32 1) nounwind
6   ret i32 %0
7 ; CHECK: t1
8 ; CHECK: ## InlineAsm Start
9 ; CHECK: .intel_syntax
10 ; CHECK: mov eax, ecx
11 ; CHECK: mov ecx, eax
12 ; CHECK: .att_syntax
13 ; CHECK: ## InlineAsm End
14 }