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
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
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
20 leaq
3(%rdx
,%rax
), %rbx