xref: /llvm-project/llvm/test/CodeGen/X86/ms-inline-asm-PR44272.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s -mtriple=i686-- | FileCheck %s
2; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
3
4define dso_local void @func() {
5entry:
6  ret void
7}
8
9define dso_local void @main() {
10entry:
11  call void asm sideeffect inteldialect "call ${0:P}", "*m,~{dirflag},~{fpsr},~{flags}"(ptr elementtype(void ()) @func)
12  ret void
13; CHECK-LABEL: main:
14; CHECK: {{## InlineAsm Start|#APP}}
15; CHECK: {{call(l|q) func$}}
16; CHECK: {{## InlineAsm End|#NO_APP}}
17; CHECK: ret{{l|q}}
18}
19