reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
; RUN: llc < %s -march=lanai | FileCheck %s

; Test lowering of shifts.

define i32 @irs(i32 inreg %a) #0 {
entry:
  %shr = ashr i32 %a, 13
  ret i32 %shr
}
; CHECK-LABEL: irs
; CHECK: sha %r6, -0xd, %rv

define i32 @urs(i32 inreg %a) #0 {
entry:
  %shr = lshr i32 %a, 13
  ret i32 %shr
}
; CHECK-LABEL: urs
; CHECK: sh %r6, -0xd, %rv

define i32 @ls(i32 inreg %a) #0 {
entry:
  %shl = shl i32 %a, 13
  ret i32 %shl
}
; CHECK-LABEL: ls
; CHECK: sh %r6, 0xd, %rv