1## Test att and intel syntax modes. 2# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t 3# RUN: llvm-objdump --no-print-imm-hex -d %t | FileCheck %s --check-prefix=ATT 4# RUN: llvm-objdump --no-print-imm-hex -d -M att %t | FileCheck %s --check-prefix=ATT 5# RUN: llvm-objdump --no-print-imm-hex -dMintel %t | FileCheck %s --check-prefix=INTEL 6# RUN: llvm-objdump --no-print-imm-hex -d --disassembler-options=intel %t | FileCheck %s --check-prefix=INTEL 7 8## The last wins. 9# RUN: llvm-objdump --no-print-imm-hex -dM att -M att,intel %t | FileCheck %s --check-prefix=INTEL 10 11## Test discouraged internal cl::opt options. 12# RUN: llvm-objdump --no-print-imm-hex -d --x86-asm-syntax=att %t | FileCheck %s --check-prefix=ATT 13# RUN: llvm-objdump --no-print-imm-hex -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