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-Rot.ll
blob
30b373990a75b82b23ad5b8852abc8f905c44ee2
1
; RUN: llc < %s -march=msp430
2
3
define i16 @rol1u16(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 = shl i16 %1, 1
9
%3 = load i16, i16* %x
10
%4 = lshr i16 %3, 15
11
%5 = or i16 %2, %4
12
store i16 %5, i16* %retval
13
br label %return
14
return:
15
%6 = load i16, i16* %retval
16
ret i16 %6
17
}