mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
f34dc1b514
Something funny happened, this should've been part of r200606. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200607 91177308-0d34-0410-b5e6-96231b3b80d8
76 lines
1.3 KiB
ArmAsm
76 lines
1.3 KiB
ArmAsm
# RUN: llvm-mc -triple i386-unknown-unknown %s 2> %t.err | FileCheck %s
|
|
# RUN: FileCheck --check-prefix=CHECK-WARNINGS %s < %t.err
|
|
|
|
# CHECK: TEST0:
|
|
# CHECK: .byte 10
|
|
TEST0:
|
|
.fill 1, 1, 10
|
|
|
|
# CHECK: TEST1:
|
|
# CHECK: .short 3
|
|
# CHECK: .short 3
|
|
TEST1:
|
|
.fill 2, 2, 3
|
|
|
|
# CHECK: TEST2:
|
|
# CHECK: .long 4
|
|
# CHECK: .long 0
|
|
TEST2:
|
|
.fill 1, 8, 4
|
|
|
|
# CHECK: TEST3
|
|
# CHECK: .byte 0
|
|
# CHECK: .byte 0
|
|
# CHECK: .byte 0
|
|
# CHECK: .byte 0
|
|
TEST3:
|
|
.fill 4
|
|
|
|
# CHECK: TEST4
|
|
# CHECK: .short 0
|
|
# CHECK: .short 0
|
|
# CHECK: .short 0
|
|
# CHECK: .short 0
|
|
TEST4:
|
|
.fill 4, 2
|
|
|
|
# CHECK: TEST5
|
|
# CHECK: .short 2
|
|
# CHECK: .byte 0
|
|
# CHECK: .short 2
|
|
# CHECK: .byte 0
|
|
# CHECK: .short 2
|
|
# CHECK: .byte 0
|
|
# CHECK: .short 2
|
|
# CHECK: .byte 0
|
|
TEST5:
|
|
.fill 4, 3, 2
|
|
|
|
# CHECK: TEST6
|
|
# CHECK: .long 2
|
|
# CHECK: .long 0
|
|
# CHECK-WARNINGS: '.fill' directive with size greater than 8 has been truncated to 8
|
|
TEST6:
|
|
.fill 1, 9, 2
|
|
|
|
# CHECK: TEST7
|
|
# CHECK: .long 0
|
|
# CHECK: .long 0
|
|
# CHECK-WARNINGS: '.fill' directive pattern has been truncated to 32-bits
|
|
TEST7:
|
|
.fill 1, 8, 1<<32
|
|
|
|
# CHECK-WARNINGS: '.fill' directive with negative repeat count has no effect
|
|
TEST8:
|
|
.fill -1, 8, 1
|
|
|
|
# CHECK-WARNINGS: '.fill' directive with negative size has no effect
|
|
TEST9:
|
|
.fill 1, -1, 1
|
|
|
|
# CHECK: TEST10
|
|
# CHECK: .short 22136
|
|
# CHECK: .byte 52
|
|
TEST10:
|
|
.fill 1, 3, 0x12345678
|