xref: /llvm-project/llvm/test/CodeGen/MSP430/2009-05-17-Shift.ll (revision 171056ff5778c40df916c5a4cea84ea6320b965f)
1; RUN: llc < %s -mtriple=msp430 | grep rra | count 1
2
3define i16 @lsr2u16(i16 %x.arg) nounwind {
4        %retval = alloca i16
5        %x = alloca i16
6        store i16 %x.arg, ptr %x
7        %1 = load i16, ptr %x
8        %2 = lshr i16 %1, 2
9        store i16 %2, ptr %retval
10        br label %return
11return:
12        %3 = load i16, ptr %retval
13        ret i16 %3
14
15}
16