Fixes PR43575.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373836
91177308-0d34-0410-b5e6-
96231b3b80d8
ExtraInfo |= InlineAsm::Extra_HasSideEffects;
if (IA->isAlignStack())
ExtraInfo |= InlineAsm::Extra_IsAlignStack;
+ ExtraInfo |= IA->getDialect() * InlineAsm::Extra_AsmDialect;
BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc,
TII.get(TargetOpcode::INLINEASM))
--- /dev/null
+; RUN: llc < %s -mtriple=x86_64-apple-macosx10.14.0 -O0 | FileCheck %s
+
+define void @exit(i32 %status)
+; CHECK-LABEL: exit:
+; CHECK: ## %bb.0:
+; CHECK: ## InlineAsm Start
+; CHECK: movq $60, %rax
+; CHECK: syscall
+; CHECK: ## InlineAsm End
+; CHECK: retq
+{
+ call void asm sideeffect inteldialect "mov rax, 60; syscall", ""()
+ ret void
+}