[flang] Update CommandTest for AIX (NFC) (#118403)
[llvm-project.git] / llvm / test / tools / llvm-objdump / X86 / disassemble-color.s
blob4e1d82562fb546aceb752427c3801b8c0f9d1243
1 # UNSUPPORTED: system-windows
2 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t
3 # RUN: llvm-objdump -d --no-show-raw-insn --disassembler-color=on %t | FileCheck %s --check-prefix=ATT
4 # RUN: llvm-objdump -d --no-show-raw-insn --disassembler-color=on -M intel %t | FileCheck %s --check-prefix=INTEL
6 # ATT: <.text>:
7 # ATT-NEXT: leaq \e[0;32m(\e[0;36m%rdx\e[0;32m,\e[0;36m%rax\e[0;32m,\e[0;31m4\e[0;32m)\e[0m, \e[0;36m%rbx\e[0m
8 # ATT-NEXT: movq \e[0;32m(,\e[0;36m%rax\e[0;32m)\e[0m, \e[0;36m%rbx\e[0m
9 # ATT-NEXT: leaq \e[0;32m0x3(\e[0;36m%rdx\e[0;32m,\e[0;36m%rax\e[0;32m)\e[0m, \e[0;36m%rbx\e[0m
10 # ATT-NEXT: movq \e[0;31m$0x3\e[0m, \e[0;36m%rax\e[0m
12 # INTEL: <.text>:
13 # INTEL-NEXT: lea \e[0;36mrbx\e[0m, \e[0;32m[\e[0;36mrdx\e[0;32m + 4*\e[0;36mrax\e[0;32m]\e[0m
14 # INTEL-NEXT: mov \e[0;36mrbx\e[0m, qword ptr \e[0;32m[1*\e[0;36mrax\e[0;32m]\e[0m
15 # INTEL-NEXT: lea \e[0;36mrbx\e[0m, \e[0;32m[\e[0;36mrdx\e[0;32m + \e[0;36mrax\e[0;32m + \e[0;31m0x3\e[0;32m]\e[0m
16 # INTEL-NEXT: mov \e[0;36mrax\e[0m, \e[0;31m0x3\e[0m
18 leaq (%rdx,%rax,4), %rbx
19 movq (,%rax), %rbx
20 leaq 3(%rdx,%rax), %rbx
21 movq $3, %rax