mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
39646d96e7
- Darwin lied about not supporting .lcomm and turned it into zerofill in the asm parser. Push the zerofill-conversion down into macho-specific code. - This makes the tri-state LCOMMType enum superfluous, there are no targets without .lcomm. - Do proper error reporting when trying to use .lcomm with alignment on a target that doesn't support it. - .comm and .lcomm alignment was parsed in bytes on COFF, should be power of 2. - Fixes PR13755 (.lcomm crashes on ELF). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163395 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
446 B
ArmAsm
16 lines
446 B
ArmAsm
# RUN: llvm-mc -triple i386-apple-darwin10 %s | FileCheck %s
|
|
# RUN: llvm-mc -triple i386-pc-mingw32 %s | FileCheck %s
|
|
# RUN: not llvm-mc -triple i386-linux-gnu %s 2>&1 | FileCheck %s -check-prefix=ERROR
|
|
|
|
# CHECK: TEST0:
|
|
# CHECK: .lcomm a,7,4
|
|
# CHECK: .lcomm b,8
|
|
# CHECK: .lcomm c,0
|
|
|
|
# ELF doesn't like alignment on .lcomm.
|
|
# ERROR: alignment not supported on this target
|
|
TEST0:
|
|
.lcomm a, 8-1, 4
|
|
.lcomm b,8
|
|
.lcomm c, 0
|