brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 5c74db1 Raw
45 lines · plain
1# RUN: llc -mtriple=powerpc64-unknown-linux-gnu -run-pass none -o - %s | FileCheck %s2# PR247243 4--- |5  define signext i32 @main(ptr %p) #0 {6  entry:7    %0 = load i32, ptr %p, align 48    %or = or i32 0, %09    store i32 %or, ptr %p, align 410    %lnot.1 = icmp eq i32 poison, 011    %lnot.ext.1 = zext i1 %lnot.1 to i3212    %shr.i.1 = lshr i32 2072, %lnot.ext.113    %call.lobit.1 = lshr i32 %shr.i.1, 714    %1 = and i32 %call.lobit.1, 115    %or.1 = or i32 %1, %or16    ret i32 %or.117  }18 19  attributes #0 = { nounwind "target-cpu"="ppc64" }20...21---22name:            main23tracksRegLiveness: true24registers:25  - { id: 0, class: g8rc_and_g8rc_nox0 }26  - { id: 1, class: gprc }27  - { id: 2, class: gprc }28  - { id: 3, class: gprc }29  - { id: 4, class: g8rc }30liveins:31  - { reg: '$x3', virtual-reg: '%0' }32body: |33  bb.0.entry:34    liveins: $x335 36    %0 = COPY $x337    %1 = LWZ 0, %0 :: (load (s32) from %ir.p)38    %2 = LI 039    %3 = RLWIMI %2, killed %1, 0, 0, 3140    %4 = EXTSW_32_64 killed %341    $x3 = COPY %442  ; CHECK: BLR8 implicit $lr8, implicit $rm, implicit $x343    BLR8 implicit $lr8, implicit $rm, implicit $x344...45