brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · dfc1bd4 Raw
35 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=powerpc64-unknown-unknown %s -o - | FileCheck %s3 4define dso_local fastcc void @trunc_srl_load(i32 zeroext %AttrArgNo) {5; CHECK-LABEL: trunc_srl_load:6; CHECK:       # %bb.0: # %entry7; CHECK-NEXT:    lhz 4, 2(0)8; CHECK-NEXT:    cmplw 4, 39; CHECK-NEXT:    ble 0, .LBB0_210; CHECK-NEXT:  # %bb.1: # %exit11; CHECK-NEXT:  .LBB0_2: # %cond.false12entry:13  %bf.load.i = load i64, ptr null, align 814  %bf.lshr.i = lshr i64 %bf.load.i, 3215  %0 = trunc i64 %bf.lshr.i to i3216  %bf.cast.i = and i32 %0, 6553517  %cmp.i = icmp ugt i32 %bf.cast.i, %AttrArgNo18  br i1 %cmp.i, label %exit, label %cond.false19exit:       ; preds = %entry20  unreachable21cond.false:                                       ; preds = %entry22  unreachable23}24 25define i32 @sh_trunc_sh(i64 %x) {26; CHECK-LABEL: sh_trunc_sh:27; CHECK:       # %bb.0:28; CHECK-NEXT:    rldicl 3, 3, 47, 3629; CHECK-NEXT:    blr30  %s = lshr i64 %x, 1331  %t = trunc i64 %s to i3232  %r = lshr i32 %t, 433  ret i32 %r34}35