1# RUN: llc -x mir -mtriple powerpc-unknown-aix-xcoff --verify-machineinstrs \ 2# RUN: -start-before=ppc-branch-select < %s | FileCheck %s 3# 4# RUN: llc -x mir -mtriple powerpc64-unknown-aix-xcoff --verify-machineinstrs \ 5# RUN: -start-before=ppc-branch-select < %s | FileCheck %s 6 7# Test uses a long branch to force printing of a branch that uses the program 8# counter as an operand. ($PC + 8) 9 10--- 11name: print_program_counter 12machineFunctionInfo: {} 13body: | 14 bb.0.entry: 15 successors: %bb.1(0x30000000), %bb.2(0x50000000) 16 liveins: $r3 17 renamable $cr0 = CMPLWI killed renamable $r3, 0 18 BCC 76, killed renamable $cr0, %bb.1 19 bb.2: 20 renamable $r3 = LI 2 21 INLINEASM &".space 32760", 1 22 BLR implicit $lr, implicit $rm, implicit killed $r3 23 bb.1: 24 renamable $r3 = LI 1 25 INLINEASM &".space 32760", 1 26 BLR implicit $lr, implicit $rm, implicit killed $r3 27 28# CHECK-LABEL: .print_program_counter: 29# CHECK: cmplwi 30# CHECK-NEXT: bne {{[0-9]}}, $+8 31 32