blob: ecf66c1cc8fc8ea98531b844f896c62ff89216be [file] [log] [blame]
Rafael Espindola0505be02006-10-16 21:10:32 +00001; RUN: llvm-as < %s | llc -march=arm &&
2; RUN: llvm-as < %s | llc -march=arm | grep __ashldi3 &&
3; RUN: llvm-as < %s | llc -march=arm | grep __ashrdi3 &&
4; RUN: llvm-as < %s | llc -march=arm | grep __lshrdi3
5uint %f1(ulong %x, ubyte %y) {
6entry:
7 %a = shl ulong %x, ubyte %y
8 %b = cast ulong %a to uint
9 ret uint %b
10}
11
12uint %f2(long %x, ubyte %y) {
13entry:
14 %a = shr long %x, ubyte %y
15 %b = cast long %a to uint
16 ret uint %b
17}
18
19uint %f3(ulong %x, ubyte %y) {
20entry:
21 %a = shr ulong %x, ubyte %y
22 %b = cast ulong %a to uint
23 ret uint %b
24}