add mvn
[oota-llvm.git] / test / CodeGen / ARM / mvn.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | wc -l | grep 4
3
4 ;int %f1() {
5 ;entry:
6 ;       ret int -1
7 ;}
8
9 int %f2(int %a) {
10 entry:
11         %tmpnot = xor int %a, -1                ; <int> [#uses=1]
12         ret int %tmpnot
13 }
14
15 ;int %f3(int %a) {
16 ;entry:
17 ;       %tmp1 = shl int %a, ubyte 2             ; <int> [#uses=1]
18 ;       %tmp1not = xor int %tmp1, -1            ; <int> [#uses=1]
19 ;       ret int %tmp1not
20 ;}
21
22 int %f4(int %a, ubyte %b) {
23 entry:
24         %tmp3 = shl int %a, ubyte %b            ; <int> [#uses=1]
25         %tmp3not = xor int %tmp3, -1            ; <int> [#uses=1]
26         ret int %tmp3not
27 }
28
29 ;uint %f5(uint %a) {
30 ;entry:
31 ;       %tmp1 = lshr uint %a, ubyte 2           ; <uint> [#uses=1]
32 ;       %tmp1not = xor uint %tmp1, 4294967295           ; <uint> [#uses=1]
33 ;       ret uint %tmp1not
34 ;}
35
36 uint %f6(uint %a, ubyte %b) {
37 entry:
38         %tmp2 = lshr uint %a, ubyte %b          ; <uint> [#uses=1]
39         %tmp2not = xor uint %tmp2, 4294967295           ; <uint> [#uses=1]
40         ret uint %tmp2not
41 }
42
43 ;int %f7(int %a) {
44 ;entry:
45 ;       %tmp1 = ashr int %a, ubyte 2            ; <int> [#uses=1]
46 ;       %tmp1not = xor int %tmp1, -1            ; <int> [#uses=1]
47 ;       ret int %tmp1not
48 ;}
49
50 int %f8(int %a, ubyte %b) {
51 entry:
52         %tmp3 = ashr int %a, ubyte %b           ; <int> [#uses=1]
53         %tmp3not = xor int %tmp3, -1            ; <int> [#uses=1]
54         ret int %tmp3not
55 }