brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.9 KiB · 668d0a4 Raw
107 lines · plain
1; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mtriple powerpc-ibm-aix-xcoff -data-sections=false < %s | \2; RUN:   FileCheck --check-prefixes=CHECK,ASM32 %s3; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mtriple powerpc64-ibm-aix-xcoff -data-sections=false < %s | \4; RUN:   FileCheck --check-prefixes=CHECK,ASM64 %s5 6; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mtriple powerpc-ibm-aix-xcoff -data-sections=false \7; RUN:   -filetype=obj -o %t.o < %s8; RUN: llvm-readobj -r --expand-relocs --syms %t.o | FileCheck --check-prefixes=RELOC,SYM,RELOC32,SYM32 %s9 10; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mtriple powerpc64-ibm-aix-xcoff -data-sections=false \11; RUN:   -filetype=obj -o %t64.o < %s12; RUN: llvm-readobj -r --expand-relocs --syms %t64.o | FileCheck --check-prefixes=RELOC,SYM,RELOC64,SYM64 %s13 14@common = common global i32 0, align 415@pointer = global ptr @common, align 416 17 18; CHECK:             .comm   common[RW],4,219; ASM32-NEXT:        .csect .data[RW],220; ASM64-NEXT:        .csect .data[RW],321; CHECK-NEXT:        .globl  pointer22; ASM32-NEXT:        .align  223; ASM64-NEXT:        .align  324; CHECK-NEXT:pointer:25; ASM32-NEXT:        .vbyte	4, common[RW]26; ASM64-NEXT:        .vbyte	8, common[RW]27 28 29; RELOC:      Relocations [30; RELOC-NEXT:   Section (index: {{[0-9]+}}) .data {31; RELOC-NEXT:   Relocation {32; RELOC-NEXT:     Virtual Address: 0x033; RELOC-NEXT:     Symbol: common ([[#COM_INDX:]])34; RELOC-NEXT:     IsSigned: No35; RELOC-NEXT:     FixupBitValue: 036; RELOC32-NEXT:   Length: 3237; RELOC64-NEXT:   Length: 6438; RELOC-NEXT:     Type: R_POS (0x0)39; RELOC-NEXT:   }40; RELOC-NEXT: }41; RELOC-NEXT: ]42 43; SYM:        Symbol {{[{][[:space:]] *}}Index: [[#INDX:]]{{[[:space:]] *}}Name: .data44; SYM-NEXT:     Value (RelocatableAddress): 0x045; SYM-NEXT:     Section: .data46; SYM-NEXT:     Type: 0x047; SYM-NEXT:     StorageClass: C_HIDEXT (0x6B)48; SYM-NEXT:     NumberOfAuxEntries: 149; SYM-NEXT:     CSECT Auxiliary Entry {50; SYM-NEXT:       Index: [[#INDX+1]]51; SYM32-NEXT:     SectionLen: 452; SYM64-NEXT:     SectionLen: 853; SYM-NEXT:       ParameterHashIndex: 0x054; SYM-NEXT:       TypeChkSectNum: 0x055; SYM32-NEXT:     SymbolAlignmentLog2: 256; SYM64-NEXT:     SymbolAlignmentLog2: 357; SYM-NEXT:       SymbolType: XTY_SD (0x1)58; SYM-NEXT:       StorageMappingClass: XMC_RW (0x5)59; SYM32-NEXT:     StabInfoIndex: 0x060; SYM32-NEXT:     StabSectNum: 0x061; SYM64-NEXT:     Auxiliary Type: AUX_CSECT (0xFB)62; SYM-NEXT:     }63; SYM-NEXT:   }64; SYM-NEXT:   Symbol {65; SYM-NEXT:     Index: [[#INDX+2]]66; SYM-NEXT:     Name: pointer67; SYM-NEXT:     Value (RelocatableAddress): 0x068; SYM-NEXT:     Section: .data69; SYM-NEXT:     Type: 0x070; SYM-NEXT:     StorageClass: C_EXT (0x2)71; SYM-NEXT:     NumberOfAuxEntries: 172; SYM-NEXT:     CSECT Auxiliary Entry {73; SYM-NEXT:       Index: [[#INDX+3]]74; SYM-NEXT:       ContainingCsectSymbolIndex: [[#INDX]]75; SYM-NEXT:       ParameterHashIndex: 0x076; SYM-NEXT:       TypeChkSectNum: 0x077; SYM-NEXT:       SymbolAlignmentLog2: 078; SYM-NEXT:       SymbolType: XTY_LD (0x2)79; SYM-NEXT:       StorageMappingClass: XMC_RW (0x5)80; SYM32-NEXT:     StabInfoIndex: 0x081; SYM32-NEXT:     StabSectNum: 0x082; SYM64-NEXT:     Auxiliary Type: AUX_CSECT (0xFB)83; SYM-NEXT:     }84; SYM-NEXT:   }85; SYM-NEXT:   Symbol {86; SYM-NEXT:     Index: [[#COM_INDX]]87; SYM-NEXT:     Name: common88; SYM32-NEXT:   Value (RelocatableAddress): 0x489; SYM64-NEXT:   Value (RelocatableAddress): 0x890; SYM-NEXT:     Section: .bss91; SYM-NEXT:     Type: 0x092; SYM-NEXT:     StorageClass: C_EXT (0x2)93; SYM-NEXT:     NumberOfAuxEntries: 194; SYM-NEXT:     CSECT Auxiliary Entry {95; SYM-NEXT:       Index: [[#COM_INDX+1]]96; SYM-NEXT:       SectionLen: 497; SYM-NEXT:       ParameterHashIndex: 0x098; SYM-NEXT:       TypeChkSectNum: 0x099; SYM-NEXT:       SymbolAlignmentLog2: 2100; SYM-NEXT:       SymbolType: XTY_CM (0x3)101; SYM-NEXT:       StorageMappingClass: XMC_RW (0x5)102; SYM32-NEXT:     StabInfoIndex: 0x0103; SYM32-NEXT:     StabSectNum: 0x0104; SYM64-NEXT:     Auxiliary Type: AUX_CSECT (0xFB)105; SYM-NEXT:     }106; SYM-NEXT:   }107