brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · f89475e Raw
79 lines · plain
1# RUN: llc -mtriple=powerpc64le-unknown-unknown -start-after=ppc-mi-peepholes \ 2# RUN: -stop-after=ppc-pre-emit-peephole -verify-machineinstrs %s -o - | FileCheck %s3--- |4  ; ModuleID = 'a.ll'5  source_filename = "a.c"   6  target datalayout = "e-m:e-i64:64-n32:64"7  target triple = "powerpc64le-unknown-linux-gnu"8 9  ; Function Attrs: norecurse nounwind readnone10  define signext i32 @test(i32 signext %a, i32 signext %b, i32 signext %c) local_unnamed_addr #0 {11  entry:12    %cmp = icmp sgt i32 %a, %b13    %add = add nsw i32 %c, %b14    %cond = select i1 %cmp, i32 %a, i32 %add15    ret i32 %cond16  }17 18  19  !llvm.module.flags = !{!0, !1}20  !llvm.ident = !{!2}21  22  !0 = !{i32 1, !"wchar_size", i32 4}23  !1 = !{i32 7, !"PIC Level", i32 2}24  !2 = !{!"clang version 8.0.0 (trunk 347251)"}25 26...27---28name:            test29alignment:       1630exposesReturnsTwice: false31legalized:       false32regBankSelected: false33selected:        false34failedISel:      false35tracksRegLiveness: true36hasWinCFI:       false37registers:       []38liveins:         39  - { reg: '$x3', virtual-reg: '' }40  - { reg: '$x4', virtual-reg: '' }41  - { reg: '$x5', virtual-reg: '' }42frameInfo:       43  isFrameAddressTaken: false44  isReturnAddressTaken: false45  hasStackMap:     false46  hasPatchPoint:   false47  stackSize:       048  offsetAdjustment: 049  maxAlignment:    050  adjustsStack:    false51  hasCalls:        false52  stackProtector:  ''53  maxCallFrameSize: 054  cvBytesOfCalleeSavedRegisters: 055  hasOpaqueSPAdjustment: false56  hasVAStart:      false57  hasMustTailInVarArgFunc: false58  localFrameSize:  059  savePoint:       []60  restorePoint:    []61fixedStack:      []62stack:           []63constants:       []64body:             |65  bb.0.entry:66    liveins: $x3, $x567 68    renamable $r4 = LI 069    renamable $r5 = nsw ADD4 killed renamable $r5, renamable $r5, implicit $x570    renamable $cr0 = CMPW renamable $r3, killed renamable $r4, implicit $x471    ; CHECK: ADD472    ; CHECK-NOT: implicit $x473    renamable $r3 = ISEL killed renamable $r3, killed renamable $r5, killed renamable $cr0gt, implicit $cr0, implicit $x374    renamable $x3 = EXTSW_32_64 killed renamable $r375    BLR8 implicit $lr8, implicit $rm, implicit killed $x376 77...78 79