Home | History | Annotate | Download | only in Mips
      1 ; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 -disable-mips-delay-filler %s -o - \
      2 ; RUN: | llvm-objdump -disassemble -triple mips64el - | FileCheck %s 
      3 
      4 ; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 %s -o - \
      5 ; RUN: | llvm-objdump -disassemble -triple mips64el - | FileCheck %s 
      6 
      7 define i64 @f3(i64 %a0) nounwind readnone {
      8 entry:
      9 ; CHECK: dsll ${{[0-9]+}}, ${{[0-9]+}}, 10
     10   %shl = shl i64 %a0, 10
     11   ret i64 %shl
     12 }
     13 
     14 define i64 @f4(i64 %a0) nounwind readnone {
     15 entry:
     16 ; CHECK: dsra ${{[0-9]+}}, ${{[0-9]+}}, 10
     17   %shr = ashr i64 %a0, 10
     18   ret i64 %shr
     19 }
     20 
     21 define i64 @f5(i64 %a0) nounwind readnone {
     22 entry:
     23 ; CHECK: dsrl ${{[0-9]+}}, ${{[0-9]+}}, 10
     24   %shr = lshr i64 %a0, 10
     25   ret i64 %shr
     26 }
     27 
     28 define i64 @f6(i64 %a0) nounwind readnone {
     29 entry:
     30 ; CHECK: dsll32 ${{[0-9]+}}, ${{[0-9]+}}, 8
     31   %shl = shl i64 %a0, 40
     32   ret i64 %shl
     33 }
     34 
     35 define i64 @f7(i64 %a0) nounwind readnone {
     36 entry:
     37 ; CHECK: dsra32 ${{[0-9]+}}, ${{[0-9]+}}, 8
     38   %shr = ashr i64 %a0, 40
     39   ret i64 %shr
     40 }
     41 
     42 define i64 @f8(i64 %a0) nounwind readnone {
     43 entry:
     44 ; CHECK: dsrl32 ${{[0-9]+}}, ${{[0-9]+}}, 8
     45   %shr = lshr i64 %a0, 40
     46   ret i64 %shr
     47 }
     48 
     49