2006-12-02 04:23:10 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __ashldi3 &&
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __ashrdi3 &&
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __lshrdi3
|
2006-10-16 21:10:32 +00:00
|
|
|
uint %f1(ulong %x, ubyte %y) {
|
|
|
|
entry:
|
|
|
|
%a = shl ulong %x, ubyte %y
|
|
|
|
%b = cast ulong %a to uint
|
|
|
|
ret uint %b
|
|
|
|
}
|
|
|
|
|
|
|
|
uint %f2(long %x, ubyte %y) {
|
|
|
|
entry:
|
|
|
|
%a = shr long %x, ubyte %y
|
|
|
|
%b = cast long %a to uint
|
|
|
|
ret uint %b
|
|
|
|
}
|
|
|
|
|
|
|
|
uint %f3(ulong %x, ubyte %y) {
|
|
|
|
entry:
|
|
|
|
%a = shr ulong %x, ubyte %y
|
|
|
|
%b = cast ulong %a to uint
|
|
|
|
ret uint %b
|
|
|
|
}
|