blob: 7817b96fa594c378da03386f52df4fad9618afec [file] [log] [blame]
Jack Cartere035f652012-07-16 15:14:51 +00001; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 %s -o - | llvm-objdump -disassemble -triple mips64el - | FileCheck %s
2
3
4define i64 @f3(i64 %a0) nounwind readnone {
5entry:
6; CHECK: dsll ${{[0-9]+}}, ${{[0-9]+}}, 10
7 %shl = shl i64 %a0, 10
8 ret i64 %shl
9}
10
11define i64 @f4(i64 %a0) nounwind readnone {
12entry:
13; CHECK: dsra ${{[0-9]+}}, ${{[0-9]+}}, 10
14 %shr = ashr i64 %a0, 10
15 ret i64 %shr
16}
17
18define i64 @f5(i64 %a0) nounwind readnone {
19entry:
20; CHECK: dsrl ${{[0-9]+}}, ${{[0-9]+}}, 10
21 %shr = lshr i64 %a0, 10
22 ret i64 %shr
23}
24
25define i64 @f6(i64 %a0) nounwind readnone {
26entry:
27; CHECK: dsll32 ${{[0-9]+}}, ${{[0-9]+}}, 8
28 %shl = shl i64 %a0, 40
29 ret i64 %shl
30}
31
32define i64 @f7(i64 %a0) nounwind readnone {
33entry:
34; CHECK: dsra32 ${{[0-9]+}}, ${{[0-9]+}}, 8
35 %shr = ashr i64 %a0, 40
36 ret i64 %shr
37}
38
39define i64 @f8(i64 %a0) nounwind readnone {
40entry:
41; CHECK: dsrl32 ${{[0-9]+}}, ${{[0-9]+}}, 8
42 %shr = lshr i64 %a0, 40
43 ret i64 %shr
44}
45