xref: /llvm-project/llvm/test/CodeGen/X86/asm-dialect-module.ll (revision f4335f075b3496bce6b49f9267e6160d1824b1bb)
1;; Test that we respect the assembler dialect when parsing module-level inline asm.
2; RUN: not llc < %s -mtriple=x86_64 2>&1 | FileCheck %s --check-prefix=ERR
3; RUN: llc < %s -mtriple=x86_64 -x86-asm-syntax=intel | FileCheck %s
4
5; ERR: <inline asm>:1:1: error: unknown use of instruction mnemonic without a size suffix
6
7; CHECK: .intel_syntax noprefix
8; CHECK: mov eax, eax
9
10module asm "mov eax, eax"
11