llvm.org GIT mirror llvm / e66ef73
[PowerPC] Add test case for r181891 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181892 91177308-0d34-0410-b5e6-96231b3b80d8 Ulrich Weigand 7 years ago
1 changed file(s) with 38 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0
1 # RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \
2 # RUN: llvm-readobj -s -sd | FileCheck %s
3
4 # This checks that fixups that can be resolved within the same
5 # object file are applied correctly.
6
7 .data
8
9 .quad v1
10 .word v2
11 .short v3
12 .byte v4
13
14 .set v1, 0x123456789abcdef0
15 .set v2, 0x87654321
16 .set v3, 0xbeef
17 .set v4, 0x42
18
19 # CHECK: Section {
20 # CHECK: Name: .data
21 # CHECK-NEXT: Type: SHT_PROGBITS
22 # CHECK-NEXT: Flags [
23 # CHECK-NEXT: SHF_ALLOC
24 # CHECK-NEXT: SHF_WRITE
25 # CHECK-NEXT: ]
26 # CHECK-NEXT: Address: 0x0
27 # CHECK-NEXT: Offset:
28 # CHECK-NEXT: Size: 15
29 # CHECK-NEXT: Link: 0
30 # CHECK-NEXT: Info: 0
31 # CHECK-NEXT: AddressAlignment: 4
32 # CHECK-NEXT: EntrySize: 0
33 # CHECK-NEXT: SectionData (
34 # CHECK-NEXT: 0000: 12345678 9ABCDEF0 87654321 BEEF42
35 # CHECK-NEXT: )
36 # CHECK-NEXT: }
37