mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
6cd76408bf
This patch updates tests using llvm-readobj and llvm-readelf, because soon reading from stdin will be achievable only via a '-' as described here: https://bugs.llvm.org/show_bug.cgi?id=46400. Patch with changes to llvm-readobj behavior is here: https://reviews.llvm.org/D83704 Differential Revision: https://reviews.llvm.org/D83912 Reviewed by: jhenderson, MaskRay, grimar
107 lines
2.2 KiB
ArmAsm
107 lines
2.2 KiB
ArmAsm
# RUN: llvm-mc -triple mips-unknown-linux -filetype=obj \
|
|
# RUN: -mips-round-section-sizes %s | llvm-readobj --sections - | FileCheck %s
|
|
.section ".talign1", "ax"
|
|
.p2align 4
|
|
t1: .byte 1
|
|
|
|
.section ".talign2", "ax"
|
|
.p2align 3
|
|
t2: addiu $2, $2, 1
|
|
addiu $2, $2, 1
|
|
|
|
.section ".talign3", "ax"
|
|
.p2align 3
|
|
t3: addiu $2, $2, 1
|
|
|
|
.section ".talign4", "ax"
|
|
t4: .byte 1
|
|
|
|
.section ".dalign1", "a"
|
|
.p2align 4
|
|
d1: .byte 1
|
|
|
|
.section ".dalign2", "a"
|
|
.p2align 3
|
|
d2: .word 1
|
|
.word 2
|
|
|
|
.section ".dalign3", "a"
|
|
.p2align 3
|
|
d3: .word 1
|
|
|
|
.section ".dalign4", "a"
|
|
d4: .byte 1
|
|
|
|
.section ".dalign5", "a"
|
|
.p2align 16
|
|
d5: .word 1
|
|
|
|
.section ".nalign1", ""
|
|
.p2align 4
|
|
n1: .byte 1
|
|
|
|
.section ".nalign2", ""
|
|
.p2align 3
|
|
n2: .word 1
|
|
.word 2
|
|
|
|
.section ".nalign3", ""
|
|
.p2align 3
|
|
n3: .word 1
|
|
|
|
.section ".nalign4", ""
|
|
n4: .byte 1
|
|
|
|
# CHECK-LABEL: Name: .talign1
|
|
# CHECK: Size: 16
|
|
# CHECK: AddressAlignment: 16
|
|
# CHECK-LABEL: }
|
|
# CHECK-LABEL: Name: .talign2
|
|
# CHECK: Size: 8
|
|
# CHECK: AddressAlignment: 8
|
|
# CHECK-LABEL: }
|
|
# CHECK-LABEL: Name: .talign3
|
|
# CHECK: Size: 8
|
|
# CHECK: AddressAlignment: 8
|
|
# CHECK-LABEL: }
|
|
# CHECK-LABEL: Name: .talign4
|
|
# CHECK: Size: 1
|
|
# CHECK: AddressAlignment: 1
|
|
# CHECK-LABEL: }
|
|
# CHECK-LABEL: Name: .dalign1
|
|
# CHECK: Size: 16
|
|
# CHECK: AddressAlignment: 16
|
|
# CHECK-LABEL: }
|
|
# CHECK-LABEL: Name: .dalign2
|
|
# CHECK: Size: 8
|
|
# CHECK: AddressAlignment: 8
|
|
# CHECK-LABEL: }
|
|
# CHECK-LABEL: Name: .dalign3
|
|
# CHECK: Size: 8
|
|
# CHECK: AddressAlignment: 8
|
|
# CHECK-LABEL: }
|
|
# CHECK-LABEL: Name: .dalign4
|
|
# CHECK: Size: 1
|
|
# CHECK: AddressAlignment: 1
|
|
# CHECK-LABEL: }
|
|
# CHECK-LABEL: Name: .dalign5
|
|
# CHECK: Size: 65536
|
|
# CHECK: AddressAlignment: 65536
|
|
# CHECK-LABEL: }
|
|
# CHECK-LABEL: Name: .nalign1
|
|
# CHECK: Size: 16
|
|
# CHECK: AddressAlignment: 16
|
|
# CHECK-LABEL: }
|
|
# CHECK-LABEL: Name: .nalign2
|
|
# CHECK: Size: 8
|
|
# CHECK: AddressAlignment: 8
|
|
# CHECK-LABEL: }
|
|
# CHECK-LABEL: Name: .nalign3
|
|
# CHECK: Size: 8
|
|
# CHECK: AddressAlignment: 8
|
|
# CHECK-LABEL: }
|
|
# CHECK-LABEL: Name: .nalign4
|
|
# CHECK: Size: 1
|
|
# CHECK: AddressAlignment: 1
|
|
# CHECK-LABEL: }
|