28 lines · plain
1; RUN: llc -verify-machineinstrs < %s | FileCheck %s2target datalayout = "E-m:e-i64:64-n32:64"3target triple = "powerpc64-unknown-linux-gnu"4 5@m = external global i32, align 46 7; Function Attrs: nounwind8define signext i32 @main() #0 {9entry:10 11; CHECK-LABEL: @main12; CHECK-NOT: rlwimi13; CHECK: andi14 15 %0 = load i32, ptr @m, align 416 %or = or i32 %0, 25017 store i32 %or, ptr @m, align 418 %and = and i32 %or, 24919 %sub.i = sub i32 %and, 020 %sext = shl i32 %sub.i, 2421 %conv = ashr exact i32 %sext, 2422 ret i32 %conv23}24 25attributes #0 = { nounwind "target-cpu"="pwr7" }26attributes #1 = { nounwind }27 28