1; RUN: llc < %s -march=lanai | FileCheck %s
2
3; Test lowering of shifts.
4
5define i32 @irs(i32 inreg %a) #0 {
6entry:
7  %shr = ashr i32 %a, 13
8  ret i32 %shr
9}
10; CHECK-LABEL: irs
11; CHECK: sha %r6, -0xd, %rv
12
13define i32 @urs(i32 inreg %a) #0 {
14entry:
15  %shr = lshr i32 %a, 13
16  ret i32 %shr
17}
18; CHECK-LABEL: urs
19; CHECK: sh %r6, -0xd, %rv
20
21define i32 @ls(i32 inreg %a) #0 {
22entry:
23  %shl = shl i32 %a, 13
24  ret i32 %shl
25}
26; CHECK-LABEL: ls
27; CHECK: sh %r6, 0xd, %rv
28
29