2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=msp430
|
2009-05-17 10:16:28 +00:00
|
|
|
|
|
|
|
define i16 @rol1u16(i16 %x.arg) nounwind {
|
|
|
|
%retval = alloca i16
|
|
|
|
%x = alloca i16
|
|
|
|
store i16 %x.arg, i16* %x
|
2015-02-27 21:17:42 +00:00
|
|
|
%1 = load i16, i16* %x
|
2009-05-17 10:16:28 +00:00
|
|
|
%2 = shl i16 %1, 1
|
2015-02-27 21:17:42 +00:00
|
|
|
%3 = load i16, i16* %x
|
2009-05-17 10:16:28 +00:00
|
|
|
%4 = lshr i16 %3, 15
|
|
|
|
%5 = or i16 %2, %4
|
|
|
|
store i16 %5, i16* %retval
|
|
|
|
br label %return
|
|
|
|
return:
|
2015-02-27 21:17:42 +00:00
|
|
|
%6 = load i16, i16* %retval
|
2009-05-17 10:16:28 +00:00
|
|
|
ret i16 %6
|
2010-04-07 22:53:17 +00:00
|
|
|
}
|