summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/longarith.ll
blob: 63b81bcac05afba3e532f4e4e6c3866695ff0208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; 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
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
}
OpenPOWER on IntegriCloud