52 lines · plain
1; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s --check-prefix=PPC642; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-ibm-aix-xcoff -mcpu=pwr7 | FileCheck %s --check-prefix=PPC643 4define i32 @shl() nounwind {5entry:6; PPC64: shl7; PPC64: slw8 %shl = shl i32 -1, 29 ret i32 %shl10}11 12define i32 @shl_reg(i32 %src1, i32 %src2) nounwind {13entry:14; PPC64: shl_reg15; PPC64: slw16 %shl = shl i32 %src1, %src217 ret i32 %shl18}19 20define i32 @lshr() nounwind {21entry:22; PPC64: lshr23; PPC64: srw24 %lshr = lshr i32 -1, 225 ret i32 %lshr26}27 28define i32 @lshr_reg(i32 %src1, i32 %src2) nounwind {29entry:30; PPC64: lshr_reg31; PPC64: srw32 %lshr = lshr i32 %src1, %src233 ret i32 %lshr34}35 36define i32 @ashr() nounwind {37entry:38; PPC64: ashr39; PPC64: srawi40 %ashr = ashr i32 -1, 241 ret i32 %ashr42}43 44define i32 @ashr_reg(i32 %src1, i32 %src2) nounwind {45entry:46; PPC64: ashr_reg47; PPC64: sraw48 %ashr = ashr i32 %src1, %src249 ret i32 %ashr50}51 52