1 ; RUN: llc -mtriple=powerpc64-unknown-unknown %s -o - | FileCheck %s
3 ; CHECK-LABEL: trunc_srl_load
4 ; CHECK-NOT: lhz 4, 4(0)
6 define dso_local fastcc void @trunc_srl_load(i32 zeroext %AttrArgNo) {
8 %bf.load.i = load i64, i64* null, align 8
9 %bf.lshr.i = lshr i64 %bf.load.i, 32
10 %0 = trunc i64 %bf.lshr.i to i32
11 %bf.cast.i = and i32 %0, 65535
12 %cmp.i = icmp ugt i32 %bf.cast.i, %AttrArgNo
13 br i1 %cmp.i, label %exit, label %cond.false
14 exit: ; preds = %entry
16 cond.false: ; preds = %entry