1 ; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 -disable-mips-delay-filler %s -o - \
2 ; RUN: | llvm-objdump -disassemble - | FileCheck %s
4 ; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 %s -o - \
5 ; RUN: | llvm-objdump -disassemble - | FileCheck %s
7 define i64 @f3(i64 %a0) nounwind readnone {
9 ; CHECK: dsll ${{[0-9]+}}, ${{[0-9]+}}, 10
10 %shl = shl i64 %a0, 10
14 define i64 @f4(i64 %a0) nounwind readnone {
16 ; CHECK: dsra ${{[0-9]+}}, ${{[0-9]+}}, 10
17 %shr = ashr i64 %a0, 10
21 define i64 @f5(i64 %a0) nounwind readnone {
23 ; CHECK: dsrl ${{[0-9]+}}, ${{[0-9]+}}, 10
24 %shr = lshr i64 %a0, 10
28 define i64 @f6(i64 %a0) nounwind readnone {
30 ; CHECK: dsll32 ${{[0-9]+}}, ${{[0-9]+}}, 8
31 %shl = shl i64 %a0, 40
35 define i64 @f7(i64 %a0) nounwind readnone {
37 ; CHECK: dsra32 ${{[0-9]+}}, ${{[0-9]+}}, 8
38 %shr = ashr i64 %a0, 40
42 define i64 @f8(i64 %a0) nounwind readnone {
44 ; CHECK: dsrl32 ${{[0-9]+}}, ${{[0-9]+}}, 8
45 %shr = lshr i64 %a0, 40