mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
dba37a3c43
argument. Instead, use a pair of .local and .comm directives. This avoids spurious differences between binaries built by the integrated assembler vs. those built by the external assembler, since the external assembler may impose alignment requirements on .lcomm symbols where the integrated assembler does not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168704 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
442 B
LLVM
16 lines
442 B
LLVM
; RUN: llc < %s -mtriple=arm-linux-gnueabi -O0 | FileCheck %s
|
|
; run with -O0 to avoid arm global merging.
|
|
|
|
@c = internal global i8 0, align 1
|
|
@x = internal global i32 0, align 4
|
|
|
|
; .lcomm doesn't support alignment, so we always use .local/.comm.
|
|
; CHECK: .local c
|
|
; CHECK-NEXT: .comm c,1,1
|
|
; CHECK: .local x
|
|
; CHECK-NEXT: .comm x,4,4
|
|
|
|
define i32 @foo() nounwind {
|
|
ret i32 sub (i32 ptrtoint (i8* @c to i32), i32 ptrtoint (i32* @x to i32))
|
|
}
|