1; RUN: llc -mcpu=ppc64 < %s | FileCheck %s
2target datalayout = "E-m:e-i64:64-n32:64"
3target triple = "powerpc64-unknown-linux-gnu"
4
5; Function Attrs: nounwind readonly
6define signext i32 @test(i32* nocapture readonly %P) #0 {
7entry:
8  %0 = load i32* %P, align 4
9  %shr = lshr i32 %0, 24
10  ret i32 %shr
11
12; CHECK-LABEL: @test
13; CHECK: lbz 3, 0(3)
14; CHECK: blr
15}
16
17attributes #0 = { nounwind readonly }
18
19