xref: /llvm-project-15.0.7/llvm/test/tools/llvm-objdump/X86/syntax-mode.s (revision e5108606)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Test att and intel syntax modes.
2# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t
3# RUN: llvm-objdump -d %t | FileCheck %s --check-prefix=ATT
4# RUN: llvm-objdump -d -M att %t | FileCheck %s --check-prefix=ATT
5# RUN: llvm-objdump -dMintel %t | FileCheck %s --check-prefix=INTEL
6# RUN: llvm-objdump -d --disassembler-options=intel %t | FileCheck %s --check-prefix=INTEL
7
8## The last wins.
9# RUN: llvm-objdump -dM att -M att,intel %t | FileCheck %s --check-prefix=INTEL
10
11## Test discouraged internal cl::opt options.
12# RUN: llvm-objdump -d --x86-asm-syntax=att %t | FileCheck %s --check-prefix=ATT
13# RUN: llvm-objdump -d --x86-asm-syntax=intel %t | FileCheck %s --check-prefix=INTEL
14
15# ATT: movw $1, %ax
16# ATT: imull %esi, %edi
17# ATT: leaq 5(%rsi,%rdi,4), %rax
18
19# INTEL: mov ax, 1
20# INTEL: imul edi, esi
21# INTEL: lea rax, [rsi + 4*rdi + 5]
22
23  movw $1, %ax
24  imull %esi, %edi
25  leaq 5(%rsi,%rdi,4), %rax
26

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026