Home | History | Annotate | Download | only in Nios2
      1 ; RUN: llc < %s -march=nios2 2>&1 | FileCheck %s
      2 ; RUN: llc < %s -march=nios2 -target-abi=nios2r2 2>&1 | FileCheck %s
      3 
      4 define i32 @sll_reg(i32 %a, i32 %b) nounwind {
      5 entry:
      6 ; CHECK: sll_reg:
      7 ; CHECK:   sll r2, r4, r5
      8   %c = shl i32 %a, %b
      9   ret i32 %c
     10 }
     11 
     12 define i32 @srl_reg(i32 %a, i32 %b) nounwind {
     13 entry:
     14 ; CHECK: srl_reg:
     15 ; CHECK:   srl r2, r4, r5
     16   %c = lshr i32 %a, %b
     17   ret i32 %c
     18 }
     19 
     20 define i32 @sra_reg(i32 %a, i32 %b) nounwind {
     21 entry:
     22 ; CHECK: sra_reg:
     23 ; CHECK:   sra r2, r4, r5
     24   %c = ashr i32 %a, %b
     25   ret i32 %c
     26 }
     27