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 [0;36msp[0m, [0;36msp[0m, [0;31m#0x10[0m 24// COLOR: str [0;36mw0[0m, [[0;36msp[0m, [0;31m#0xc[0m] 25// COLOR: ldr [0;36mw8[0m, [[0;36msp[0m, [0;31m#0xc[0m] 26// COLOR: ldr [0;36mw9[0m, [[0;36msp[0m, [0;31m#0xc[0m] 27// COLOR: mul [0;36mw0[0m, [0;36mw8[0m, [0;36mw9[0m 28// COLOR: add [0;36msp[0m, [0;36msp[0m, [0;31m#0x10[0m 29