mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
0086358325
As X86MCAsmInfoDarwin uses '##' as CommentString although a single '#' starts a comment a workaround for this special case is added. Fixes divisions in constant expressions for the AArch64 assembler and other targets which use '//' as CommentString. Patch by Janne Grunau! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215615 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
546 B
ArmAsm
15 lines
546 B
ArmAsm
// RUN: llvm-mc -triple x86_64-apple-darwin %s 2>&1 | FileCheck %s
|
|
# ensure that single '#' comments are worink as expected on x86 darwin
|
|
.align 3 # test single hash after align
|
|
// CHECK: .align 3
|
|
foo: # single hash should be ignored as comment
|
|
// CHECK-LABEL: foo:
|
|
movl %esp, %ebp # same after an instruction
|
|
// CHECK: movl %esp, %ebp
|
|
# movl %esp, %ebp ## start of the line
|
|
// CHECK-NOT: movl %esp, %ebp
|
|
# movl %esp, %ebp ## not quite start of the line
|
|
// CHECK-NOT: movl %esp, %ebp
|
|
bar:
|
|
// CHECK-LABEL: bar:
|