2012-09-10 21:10:49 +00:00
|
|
|
; RUN: llc < %s -march=x86 | FileCheck %s
|
|
|
|
|
|
|
|
define i32 @t1() nounwind {
|
|
|
|
entry:
|
2012-09-11 16:33:10 +00:00
|
|
|
%0 = tail call i32 asm sideeffect inteldialect "mov eax, $1\0A\09mov $0, eax", "=r,r,~{eax},~{dirflag},~{fpsr},~{flags}"(i32 1) nounwind
|
2012-09-10 21:10:49 +00:00
|
|
|
ret i32 %0
|
2012-09-10 21:31:43 +00:00
|
|
|
; CHECK: t1
|
2012-09-10 22:04:54 +00:00
|
|
|
; CHECK: {{## InlineAsm Start|#APP}}
|
2012-09-10 21:36:05 +00:00
|
|
|
; CHECK: .intel_syntax
|
2012-09-10 21:10:49 +00:00
|
|
|
; CHECK: mov eax, ecx
|
|
|
|
; CHECK: mov ecx, eax
|
2012-09-10 21:36:05 +00:00
|
|
|
; CHECK: .att_syntax
|
2012-09-10 22:04:54 +00:00
|
|
|
; CHECK: {{## InlineAsm End|#NO_APP}}
|
2012-09-10 21:10:49 +00:00
|
|
|
}
|
2012-09-11 19:09:56 +00:00
|
|
|
|
|
|
|
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}}
|
|
|
|
}
|