blob: 2ae005259d4fa7c670873fc6be41f185ea7455cf [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=msp430
Anton Korobeynikove4fdb8b2009-05-17 10:16:28 +00002
3define 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* %x
8 %2 = shl i16 %1, 1
9 %3 = load i16* %x
10 %4 = lshr i16 %3, 15
11 %5 = or i16 %2, %4
12 store i16 %5, i16* %retval
13 br label %return
14return:
15 %6 = load i16* %retval
16 ret i16 %6
17}