mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Fix PR6921: globals were not getting correctly rounded up to their
preferred alignment unless they were common or some other special case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102300 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
; RUN: llc %s -o - -mtriple=x86_64-linux-gnu | FileCheck %s
|
||||
|
||||
; This can get rounded up to the preferred alignment (16).
|
||||
; PR6921
|
||||
@GlobalA = global { [384 x i8] } zeroinitializer, align 8
|
||||
|
||||
; CHECK: .bss
|
||||
; CHECK: .globl GlobalA
|
||||
; CHECK: .align 16
|
||||
; CHECK: GlobalA:
|
||||
; CHECK: .zero 384
|
||||
|
||||
; Common variables should also get rounded up to the preferred alignment (16).
|
||||
@GlobalB = common global { [384 x i8] } zeroinitializer, align 8
|
||||
|
||||
; CHECK: .comm GlobalB,384,16
|
||||
@@ -28,8 +28,9 @@ return:
|
||||
|
||||
declare void @llvm.memcpy.i64(i8* nocapture, i8* nocapture, i64, i32) nounwind
|
||||
|
||||
; CORE2: .align 3
|
||||
; CORE2: .section
|
||||
; CORE2: .align 4
|
||||
; CORE2-NEXT: _.str1:
|
||||
; CORE2-NEXT: .asciz "DHRYSTONE PROGRAM, SOME STRING"
|
||||
; CORE2: .align 3
|
||||
; CORE2: .align 4
|
||||
; CORE2-NEXT: _.str3:
|
||||
|
||||
Reference in New Issue
Block a user