xref: /llvm-project/llvm/test/tools/llvm-objdump/MachO/arm64-disassembly-color.s (revision a23b9b7ef13462c5a345512b2e65b9ae486217fa)
1// UNSUPPORTED: system-windows
2// REQUIRES: aarch64-registered-target
3
4// RUN: llvm-mc -triple arm64-apple-macosx %s -filetype=obj -o %t
5// RUN: llvm-objdump --disassembler-color=on --disassemble %t | FileCheck %s --check-prefix=COLOR
6// RUN: llvm-objdump --disassembler-color=off --disassemble %t | FileCheck %s --check-prefix=NOCOLOR
7// RUN: llvm-objdump --disassembler-color=terminal --disassemble %t | FileCheck %s --check-prefix=NOCOLOR
8
9sub	sp, sp, #16
10str	w0, [sp, #12]
11ldr	w8, [sp, #12]
12ldr	w9, [sp, #12]
13mul	w0, w8, w9
14add	sp, sp, #16
15
16// NOCOLOR: sub	sp, sp, #0x10
17// NOCOLOR: str	w0, [sp, #0xc]
18// NOCOLOR: ldr	w8, [sp, #0xc]
19// NOCOLOR: ldr	w9, [sp, #0xc]
20// NOCOLOR: mul	w0, w8, w9
21// NOCOLOR: add	sp, sp, #0x10
22
23// COLOR: sub	sp, sp, #0x10
24// COLOR: str	w0, [sp, #0xc]
25// COLOR: ldr	w8, [sp, #0xc]
26// COLOR: ldr	w9, [sp, #0xc]
27// COLOR: mul	w0, w8, w9
28// COLOR: add	sp, sp, #0x10
29