blob: 25aff60c2b3ff38751af35d5a1f042c8268dbc63 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=msp430 | grep rra | count 1
Anton Korobeynikovaceb6202009-05-17 10:15:22 +00002
3define 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* %x
8 %2 = lshr i16 %1, 2
9 store i16 %2, i16* %retval
10 br label %return
11return:
12 %3 = load i16* %retval
13 ret i16 %3
14
15}