Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-objdump / MachO / arm64-disassembly-color.s
blob50cd24c7667636f5b087ee17e3b90b8e39de723f
1 // UNSUPPORTED: system-windows
2 // REQUIRES: aarch64-registered-target
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
9 sub sp, sp, #16
10 str w0, [sp, #12]
11 ldr w8, [sp, #12]
12 ldr w9, [sp, #12]
13 mul w0, w8, w9
14 add sp, sp, #16
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
23 // COLOR: sub \e[0;36msp\e[0m, \e[0;36msp\e[0m, \e[0;31m#0x10\e[0m
24 // COLOR: str \e[0;36mw0\e[0m, [\e[0;36msp\e[0m, \e[0;31m#0xc\e[0m]
25 // COLOR: ldr \e[0;36mw8\e[0m, [\e[0;36msp\e[0m, \e[0;31m#0xc\e[0m]
26 // COLOR: ldr \e[0;36mw9\e[0m, [\e[0;36msp\e[0m, \e[0;31m#0xc\e[0m]
27 // COLOR: mul \e[0;36mw0\e[0m, \e[0;36mw8\e[0m, \e[0;36mw9\e[0m
28 // COLOR: add \e[0;36msp\e[0m, \e[0;36msp\e[0m, \e[0;31m#0x10\e[0m