32 lines · plain
1# RUN: llc -x mir -mtriple powerpc-unknown-aix-xcoff --verify-machineinstrs \2# RUN: -start-before=ppc-branch-select < %s | FileCheck %s3#4# RUN: llc -x mir -mtriple powerpc64-unknown-aix-xcoff --verify-machineinstrs \5# RUN: -start-before=ppc-branch-select < %s | FileCheck %s6 7# Test uses a long branch to force printing of a branch that uses the program8# counter as an operand. ($PC + 8)9 10---11name: print_program_counter12machineFunctionInfo: {}13body: |14 bb.0.entry:15 successors: %bb.1(0x30000000), %bb.2(0x50000000)16 liveins: $r317 renamable $cr0 = CMPLWI killed renamable $r3, 018 BCC 76, killed renamable $cr0, %bb.119 bb.2:20 renamable $r3 = LI 221 INLINEASM &".space 32760", 122 BLR implicit $lr, implicit $rm, implicit killed $r323 bb.1:24 renamable $r3 = LI 125 INLINEASM &".space 32760", 126 BLR implicit $lr, implicit $rm, implicit killed $r327 28# CHECK-LABEL: .print_program_counter:29# CHECK: cmplwi30# CHECK-NEXT: bne {{[0-9]}}, $+831 32