2015-01-06 05:33:14 +08:00
|
|
|
; RUN: llc -mcpu=ppc64 < %s | FileCheck %s
|
|
|
|
target datalayout = "E-m:e-i64:64-n32:64"
|
|
|
|
target triple = "powerpc64-unknown-linux-gnu"
|
|
|
|
|
|
|
|
; Function Attrs: nounwind readonly
|
|
|
|
define signext i32 @test(i32* nocapture readonly %P) #0 {
|
|
|
|
entry:
|
2015-02-28 05:17:42 +08:00
|
|
|
%0 = load i32, i32* %P, align 4
|
2015-01-06 05:33:14 +08:00
|
|
|
%shr = lshr i32 %0, 24
|
|
|
|
ret i32 %shr
|
|
|
|
|
|
|
|
; CHECK-LABEL: @test
|
|
|
|
; CHECK: lbz 3, 0(3)
|
|
|
|
; CHECK: blr
|
|
|
|
}
|
|
|
|
|
|
|
|
attributes #0 = { nounwind readonly }
|
|
|
|
|