brintos

brintos / llvm-project-archived public Read only

0
0
Text · 608 B · c77ec02 Raw
30 lines · plain
1; RUN: llc -mtriple=mipsel < %s | FileCheck %s2 3define i64 @shl0(i64 %a, i32 %b) nounwind readnone {4entry:5; CHECK: shl06; CHECK-NOT: lw $25, %call16(__7  %sh_prom = zext i32 %b to i648  %shl = shl i64 %a, %sh_prom9  ret i64 %shl10}11 12define i64 @shr1(i64 %a, i32 %b) nounwind readnone {13entry:14; CHECK: shr115; CHECK-NOT: lw $25, %call16(__16  %sh_prom = zext i32 %b to i6417  %shr = lshr i64 %a, %sh_prom18  ret i64 %shr19}20 21define i64 @sra2(i64 %a, i32 %b) nounwind readnone {22entry:23; CHECK: sra224; CHECK-NOT: lw $25, %call16(__25  %sh_prom = zext i32 %b to i6426  %shr = ashr i64 %a, %sh_prom27  ret i64 %shr28}29 30