mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
d92e2e4f88
Emit a repeated sequence of bytes using .zero. This saves an enormous amount of asm file space for certain programs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138864 91177308-0d34-0410-b5e6-96231b3b80d8
35 lines
2.0 KiB
LLVM
35 lines
2.0 KiB
LLVM
; RUN: llc -march=x86-64 < %s | FileCheck %s
|
|
|
|
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
@x = global [500 x i64] zeroinitializer, align 64 ; <[500 x i64]*>
|
|
; CHECK: x:
|
|
; CHECK: .zero 4000
|
|
|
|
@y = global [63 x i64] [
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262,
|
|
i64 6799976246779207262, i64 6799976246779207262, i64 6799976246779207262],
|
|
align 64 ; <[63 x i64]*> 0x5e5e5e5e
|
|
; CHECK: y:
|
|
; CHECK: .zero 504,94
|