blob: 5f8f507a254351a0fc797333151af8da8464e40f [file] [log] [blame]
Evan Cheng63f8a212007-02-28 00:36:33 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep add | grep lsl &&
2; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep bic | grep asr
Evan Cheng02b985c2007-01-19 09:20:23 +00003
4int %test1(int %X, int %Y, ubyte %sh) {
5 %A = shl int %Y, ubyte %sh
6 %B = add int %X, %A
7 ret int %B
8}
9
10int %test2(int %X, int %Y, ubyte %sh) {
11 %A = shr int %Y, ubyte %sh
12 %B = xor int %A, -1
13 %C = and int %X, %B
14 ret int %C
15}