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