xref: /aosp_15_r20/external/llvm/test/MC/AsmParser/comments-x86-darwin.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -triple x86_64-apple-darwin %s 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker# ensure that single '#' comments are worink as expected on x86 darwin
3*9880d681SAndroid Build Coastguard Worker.p2align 3            # test single hash after align
4*9880d681SAndroid Build Coastguard Worker// CHECK: .p2align 3
5*9880d681SAndroid Build Coastguard Workerfoo:                # single hash should be ignored as comment
6*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: foo:
7*9880d681SAndroid Build Coastguard Worker    movl %esp, %ebp # same after an instruction
8*9880d681SAndroid Build Coastguard Worker// CHECK: movl %esp, %ebp
9*9880d681SAndroid Build Coastguard Worker#   movl %esp, %ebp ## start of the line
10*9880d681SAndroid Build Coastguard Worker// CHECK-NOT: movl %esp, %ebp
11*9880d681SAndroid Build Coastguard Worker    # movl %esp, %ebp ## not quite start of the line
12*9880d681SAndroid Build Coastguard Worker// CHECK-NOT: movl %esp, %ebp
13*9880d681SAndroid Build Coastguard Workerbar:
14*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: bar:
15