brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · de3fb61 Raw
53 lines · plain
1# RUN: llc -o - %s -mtriple=powerpc64le--linux-gnu -run-pass=branch-folder | FileCheck %s2# The branch-folder should merge bb.1 and bb.5 below and therefore recalculate3# the liveins list of the merged block. This test is checking whether this4# recalculated list if okay and contains all the non-saved and saved CSRs.5# CHECK-LABEL: name: func6# CHECK: bb.3:7# CHECK-NEXT: liveins: $x30, $x29, $x3, $x68# CHECK: $x4 = RLDICR killed $x6, 16, 479# CHECK: $x3 = OR8 killed $x4, killed $x310# CHECK: BLR8 implicit $lr8, implicit $rm, implicit $x311---12name: func13tracksRegLiveness: true14fixedStack:      15  - { id: 0, type: spill-slot, offset: -16, size: 8, alignment: 16, callee-saved-register: '$x30' }16  - { id: 1, type: spill-slot, offset: -24, size: 8, alignment: 8, callee-saved-register: '$x29' }17  - { id: 2, offset: -8, size: 8, alignment: 8, isImmutable: true, isAliased: false }18body: |19  bb.0:20    liveins: $x3, $x5, $x29, $x3021  22    $x6 = RLWINM8 $x3, 16, 16, 3123    $x3 = RLDICL killed $x3, 0, 4824    BC undef $cr5lt, %bb.325  26  bb.1:27    liveins: $x3, $x6, $x29, $x3028  29    $x4 = RLDICR killed $x6, 16, 4730    $x3 = OR8 killed $x4, killed $x331    BLR8 implicit $lr8, implicit $rm, implicit $x332  33  bb.3:34    liveins: $x3, $x5, $x6, $x29, $x3035 36    dead $x5 = ADD8 $x5, $x637    BC undef $cr5lt, %bb.138 39  bb.6:40    liveins: $x3, $x6, $x29, $x3041    STD killed $x29, -24, $x1 :: (store (s64) into %fixed-stack.1)42    STD killed $x30, -16, $x1 :: (store (s64) into %fixed-stack.0, align 16)43    NOP implicit-def dead $x2944    NOP implicit-def dead $x3045 46    $x30 = LD -16, $x1 :: (load (s64) from %fixed-stack.0, align 16)47    $x29 = LD -24, $x1 :: (load (s64) from %fixed-stack.1)48  49    $x4 = RLDICR killed $x6, 16, 4750    $x3 = OR8 killed $x4, killed $x351    BLR8 implicit $lr8, implicit $rm, implicit $x3 52...53