brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · e74fc9e Raw
78 lines · plain
1# RUN: llc -relocation-model=pic -start-after=block-placement -o - %s | FileCheck %s2 3--- |4  target datalayout = "E-m:e-i64:64-n32:64"5  target triple = "powerpc64-unknown-linux-gnu"6  7  @x = internal thread_local unnamed_addr global i1 false8  @y = external thread_local global i32, align 49  10  ; Function Attrs: nounwind11  define void @test1() #0 {12  entry:13    store i1 true, ptr @x, align 114    store i32 20, ptr @y, align 415    ret void16  }17  18  attributes #0 = { nounwind "frame-pointer"="all" "target-cpu"="pwr7" }19  20  !llvm.module.flags = !{!0}21  22  !0 = !{i32 1, !"PIC Level", i32 2}23 24...25---26name:            test127alignment:       1628exposesReturnsTwice: false29tracksRegLiveness: true30frameInfo:       31  isFrameAddressTaken: false32  isReturnAddressTaken: false33  hasStackMap:     false34  hasPatchPoint:   false35  stackSize:       6436  offsetAdjustment: 037  maxAlignment:    038  adjustsStack:    false39  hasCalls:        false40  maxCallFrameSize: 4841  hasOpaqueSPAdjustment: false42  hasVAStart:      false43  hasMustTailInVarArgFunc: false44fixedStack:      45  - { id: 0, type: spill-slot, offset: -16, size: 8, alignment: 16, callee-saved-register: '$x30' }46  - { id: 1, offset: -8, size: 8, alignment: 8, isImmutable: true, isAliased: false }47body:             |48  bb.0.entry:49    liveins: $x30, $x3050  51    $x0 = MFLR8 implicit $lr852    STD $x31, -8, $x153    STD killed $x0, 16, $x154    $x1 = STDU $x1, -64, $x155    $x3 = ADDIStlsldHA $x2, @x56    $x31 = OR8 $x1, $x157    $x3 = ADDItlsldL killed $x3, @x58    STD killed $x30, 48, $x31 :: (store (s64) into %fixed-stack.0, align 16)59    $x3 = GETtlsldADDR killed $x3, @x, implicit-def dead $x0, implicit-def dead $x4, implicit-def dead $x5, implicit-def dead $x6, implicit-def dead $x7, implicit-def dead $x8, implicit-def dead $x9, implicit-def dead $x10, implicit-def dead $x11, implicit-def dead $x12, implicit-def $lr8, implicit-def $ctr8, implicit-def dead $cr0, implicit-def dead $cr1, implicit-def dead $cr5, implicit-def dead $cr6, implicit-def dead $cr760    $x12 = ADDIStlsgdHA $x2, @y61    $x30 = OR8 killed $x3, $x362    $x3 = ADDItlsgdL killed $x12, @y63    $x3 = GETtlsADDR killed $x3, @y, implicit-def dead $x0, implicit-def dead $x4, implicit-def dead $x5, implicit-def dead $x6, implicit-def dead $x7, implicit-def dead $x8, implicit-def dead $x9, implicit-def dead $x10, implicit-def dead $x11, implicit-def dead $x12, implicit-def $lr8, implicit-def $ctr8, implicit-def dead $cr0, implicit-def dead $cr1, implicit-def dead $cr5, implicit-def dead $cr6, implicit-def dead $cr764    $x4 = ADDISdtprelHA killed $x30, @x65    ; CHECK: addis 4, 30, x@dtprel@ha66    $x5 = LI8 167    $r6 = LI 2068    $x30 = LD 48, $x31 :: (load (s64) from %fixed-stack.0, align 16)69    STB8 killed $x5, target-flags(ppc-dtprel-lo) @x, killed $x4 :: (store (s8) into @x)70    STW killed $r6, 0, killed $x3 :: (store (s32) into @y)71    $x1 = ADDI8 $x1, 6472    $x0 = LD 16, $x173    $x31 = LD -8, $x174    MTLR8 killed $x0, implicit-def $lr875    BLR8 implicit $lr8, implicit $rm76 77...78