[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / tools / llvm-objdump / X86 / syntax-mode.s
blob9b367f1c9d446b225656c6f9e6956a57832e124f
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
8 ## The last wins.
9 # RUN: llvm-objdump --no-print-imm-hex -dM att -M att,intel %t | FileCheck %s --check-prefix=INTEL
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
15 # ATT: movw $1, %ax
16 # ATT: imull %esi, %edi
17 # ATT: leaq 5(%rsi,%rdi,4), %rax
19 # INTEL: mov ax, 1
20 # INTEL: imul edi, esi
21 # INTEL: lea rax, [rsi + 4*rdi + 5]
23 movw $1, %ax
24 imull %esi, %edi
25 leaq 5(%rsi,%rdi,4), %rax