projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add 64-bit shift instructions.
[oota-llvm.git]
/
test
/
CodeGen
/
SPARC
/
64bit.ll
1
; RUN: llc < %s -march=sparcv9 | FileCheck %s
2
3
; CHECK: ret2:
4
; CHECK: or %g0, %i1, %i0
5
define i64 @ret2(i64 %a, i64 %b) {
6
ret i64 %b
7
}
8
9
; CHECK: shl_imm
10
; CHECK: sllx %i0, 7, %i0
11
define i64 @shl_imm(i64 %a) {
12
%x = shl i64 %a, 7
13
ret i64 %x
14
}
15
16
; CHECK: sra_reg
17
; CHECK: srax %i0, %i1, %i0
18
define i64 @sra_reg(i64 %a, i64 %b) {
19
%x = ashr i64 %a, %b
20
ret i64 %x
21
}