brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 0be72d9 Raw
52 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mcpu=pwr9 -O3 < %s | FileCheck %s -check-prefix=PPC64LE3 4target datalayout = "e-m:e-i64:64-n32:64"5target triple = "powerpc64le-unknown-linux-gnu"6 7@global.6 = external global ptr8 9declare void @barney.88(i1, ptr)10declare void @barney.94(ptr, i32)11 12define void @redundancy_on_ppc_only(i1 %arg7) nounwind {13; PPC64LE-LABEL: redundancy_on_ppc_only:14; PPC64LE:       # %bb.0: # %bb15; PPC64LE-NEXT:    andi. 3, 3, 116; PPC64LE-NEXT:    mflr 017; PPC64LE-NEXT:    stdu 1, -32(1)18; PPC64LE-NEXT:    li 3, 119; PPC64LE-NEXT:    li 4, 020; PPC64LE-NEXT:    std 0, 48(1)21; PPC64LE-NEXT:    iselgt 3, 3, 422; PPC64LE-NEXT:    bl barney.8823; PPC64LE-NEXT:    nop24; PPC64LE-NEXT:    addi 1, 1, 3225; PPC64LE-NEXT:    ld 0, 16(1)26; PPC64LE-NEXT:    mtlr 027; PPC64LE-NEXT:    blr28bb:29  br label %bb1030 31bb10:                                             ; preds = %bb32  call void @barney.88(i1 %arg7, ptr null)33  ret void34}35 36define void @redundancy_on_ppc_and_other_targets() nounwind {37; PPC64LE-LABEL: redundancy_on_ppc_and_other_targets:38; PPC64LE:       # %bb.0:39; PPC64LE-NEXT:    mflr 040; PPC64LE-NEXT:    stdu 1, -32(1)41; PPC64LE-NEXT:    addis 3, 2, .LC0@toc@ha42; PPC64LE-NEXT:    li 4, 043; PPC64LE-NEXT:    std 0, 48(1)44; PPC64LE-NEXT:    ld 3, .LC0@toc@l(3)45; PPC64LE-NEXT:    std 4, 0(3)46; PPC64LE-NEXT:    bl barney.9447; PPC64LE-NEXT:    nop48  store ptr null, ptr @global.649  call void @barney.94(ptr undef, i32 0)50  unreachable51}52