repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-core.git]
/
test
/
CodeGen
/
MSP430
/
2009-05-17-Shift.ll
blob
2e3dd5593ff0b9dd6c982e3d7a7c0fffde4f5b5e
1
; RUN: llc < %s -march=msp430 | grep rra | count 1
2
3
define i16 @lsr2u16(i16 %x.arg) nounwind {
4
%retval = alloca i16
5
%x = alloca i16
6
store i16 %x.arg, i16* %x
7
%1 = load i16, i16* %x
8
%2 = lshr i16 %1, 2
9
store i16 %2, i16* %retval
10
br label %return
11
return:
12
%3 = load i16, i16* %retval
13
ret i16 %3
14
15
}