109 lines · plain
1# RUN: llc -verify-machineinstrs -start-before=ppc-pre-emit-peephole %s -o - | FileCheck %s2--- |3 target datalayout = "e-m:e-i64:64-n32:64"4 target triple = "powerpc64le-unknown-linux-gnu"5 6 declare signext i32 @callee(i32 signext)7 8 define signext i32 @func(i32 signext %v) {9 ret i32 010 }11...12---13name: func14alignment: 1615exposesReturnsTwice: false16legalized: false17regBankSelected: false18selected: false19failedISel: false20tracksRegLiveness: true21registers:22liveins:23 - { reg: '$x3', virtual-reg: '' }24frameInfo:25 isFrameAddressTaken: false26 isReturnAddressTaken: false27 hasStackMap: false28 hasPatchPoint: false29 stackSize: 4830 offsetAdjustment: 031 maxAlignment: 032 adjustsStack: true33 hasCalls: true34 stackProtector: ''35 maxCallFrameSize: 3236 hasOpaqueSPAdjustment: false37 hasVAStart: false38 hasMustTailInVarArgFunc: false39 localFrameSize: 040 savePoint: []41 restorePoint: []42fixedStack:43 - { id: 0, type: spill-slot, offset: -16, size: 8, alignment: 16, stack-id: default,44 callee-saved-register: '$x30', callee-saved-restored: true, debug-info-variable: '', 45 debug-info-expression: '', debug-info-location: '' }46stack:47constants:48 49body: |50 bb.0:51 successors: %bb.2(0x30000000), %bb.1(0x50000000)52 liveins: $x3, $x3053 54 ; bc should be converted into b55 ; CHECK-LABEL: func56 ; CHECK: # %bb.157 ; CHECK: creqv58 ; CHECK-NOT: bc59 ; CHECK: b .LBB0_360 ; CHECK: .LBB0_261 62 $x0 = MFLR8 implicit $lr863 STD killed $x0, 16, $x164 $x1 = STDU $x1, -48, $x165 STD killed $x30, 32, $x1 :: (store (s64) into %fixed-stack.0, align 16)66 $x30 = OR8 $x3, $x367 BL8_NOP @callee, csr_ppc64_altivec, implicit-def dead $lr8, implicit $rm, implicit killed $x3, implicit $x2, implicit-def $r1, implicit-def $x368 renamable $cr0 = CMPLWI renamable $r3, 069 BCC 76, killed renamable $cr0, %bb.270 71 bb.1:72 successors: %bb.5(0x40000000), %bb.2(0x40000000)73 liveins: $x374 75 renamable $x3 = EXTSW_32_64 killed renamable $r3, implicit $x376 BL8_NOP @callee, csr_ppc64_altivec, implicit-def dead $lr8, implicit $rm, implicit killed $x3, implicit $x2, implicit-def $r1, implicit-def $x377 renamable $cr2un = CRSET78 $cr2gt = CROR $cr2un, $cr2un79 $x30 = OR8 killed $x3, $x380 BC killed renamable $cr2un, %bb.581 B %bb.282 83 bb.4:84 successors: %bb.5(0x80000000)85 liveins: $x3086 87 $x3 = LI8 088 BL8_NOP @callee, csr_ppc64_altivec, implicit-def dead $lr8, implicit $rm, implicit killed $x3, implicit $x2, implicit-def $r1, implicit-def dead $x389 90 bb.5:91 liveins: $x3092 93 renamable $x3 = EXTSW_32_64 killed renamable $r30, implicit $x3094 $x30 = LD 32, $x1 :: (load (s64) from %fixed-stack.0, align 16)95 $x1 = ADDI8 $x1, 4896 $x0 = LD 16, $x197 MTLR8 killed $x0, implicit-def $lr898 BLR8 implicit $lr8, implicit $rm, implicit killed $x399 100 bb.2:101 successors: %bb.5(0x40000000), %bb.4(0x40000000)102 liveins: $x30103 104 renamable $cr0 = CMPWI renamable $r30, -1105 BCn killed renamable $cr0gt, %bb.4106 B %bb.5107 108...109