85 lines · plain
1# RUN: llc -verify-machineinstrs -mcpu=pwr4 -mtriple powerpc-ibm-aix-xcoff -x mir -verify-machineinstrs \2# RUN: -xcoff-traceback-table=false -start-after=lazy-machine-block-freq -filetype=obj -o %t.o < %s3# RUN: llvm-readobj --relocs --expand-relocs --syms %t.o | FileCheck --check-prefixes=RELOC,SYM %s4# RUN: llvm-objdump -D %t.o | FileCheck --check-prefix=DIS %s5 6---7name: foo8alignment: 169tracksRegLiveness: true10jumpTable:11 kind: label-difference3212 entries:13 - id: 014 blocks: [ '%bb.0' ]15body: |16 bb.0:17 successors: %bb.0(0x20000000)18 liveins: $r219 renamable $r3 = LWZtoc %jump-table.0, $r2 :: (load (s32) from got)20 BLR implicit $lr, implicit $rm, implicit killed $r321...22 23# RELOC: Relocation {{[{][[:space:]] *}}Virtual Address: 0x824# RELOC-NEXT: Symbol: ([[#TXT_INDX:]])25# RELOC-NEXT: IsSigned: No26# RELOC-NEXT: FixupBitValue: 027# RELOC-NEXT: Length: 3228# RELOC-NEXT: Type: R_POS (0x0)29# RELOC-NEXT: }30# RELOC-NEXT: Relocation {31# RELOC-NEXT: Virtual Address: 0x832# RELOC-NEXT: Symbol: .rodata ([[#RO_INDX:]])33# RELOC-NEXT: IsSigned: No34# RELOC-NEXT: FixupBitValue: 035# RELOC-NEXT: Length: 3236# RELOC-NEXT: Type: R_NEG (0x1)37# RELOC-NEXT: }38 39# SYM: Symbol {{[{][[:space:]] *}}Index: [[#TXT_INDX]]{{[[:space:]] *}}Name: 40# SYM-NEXT: Value (RelocatableAddress): 0x041# SYM-NEXT: Section: .text42# SYM-NEXT: Type: 0x043# SYM-NEXT: StorageClass: C_HIDEXT (0x6B)44# SYM-NEXT: NumberOfAuxEntries: 145# SYM-NEXT: CSECT Auxiliary Entry {46# SYM-NEXT: Index: [[#TXT_INDX+1]]47# SYM-NEXT: SectionLen: 848# SYM-NEXT: ParameterHashIndex: 0x049# SYM-NEXT: TypeChkSectNum: 0x050# SYM-NEXT: SymbolAlignmentLog2: 551# SYM-NEXT: SymbolType: XTY_SD (0x1)52# SYM-NEXT: StorageMappingClass: XMC_PR (0x0)53# SYM-NEXT: StabInfoIndex: 0x054# SYM-NEXT: StabSectNum: 0x055# SYM-NEXT: }56# SYM-NEXT: }57# SYM: Symbol {{[{][[:space:]] *}}Index: [[#RO_INDX]]{{[[:space:]] *}}Name: .rodata58# SYM-NEXT: Value (RelocatableAddress): 0x859# SYM-NEXT: Section: .text60# SYM-NEXT: Type: 0x061# SYM-NEXT: StorageClass: C_HIDEXT (0x6B)62# SYM-NEXT: NumberOfAuxEntries: 163# SYM-NEXT: CSECT Auxiliary Entry {64# SYM-NEXT: Index: [[#RO_INDX+1]]65# SYM-NEXT: SectionLen: 466# SYM-NEXT: ParameterHashIndex: 0x067# SYM-NEXT: TypeChkSectNum: 0x068# SYM-NEXT: SymbolAlignmentLog2: 269# SYM-NEXT: SymbolType: XTY_SD (0x1)70# SYM-NEXT: StorageMappingClass: XMC_RO (0x1)71# SYM-NEXT: StabInfoIndex: 0x072# SYM-NEXT: StabSectNum: 0x073# SYM-NEXT: }74# SYM-NEXT: }75 76# DIS: Disassembly of section .text:77# DIS-EMPTY:78# DIS-NEXT: 00000000 <.foo>:79# DIS-NEXT: 0: 80 62 00 00 lwz 3, 0(2)80# DIS-NEXT: 4: 4e 80 00 20 blr81# DIS-EMPTY:82# DIS-NEXT: 00000008 <.rodata>:83# DIS-NEXT: 8: ff ff ff f8 fmsub 31, 31, 31, 3184# DIS-EMPTY:85