summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/mvn.ll
blob: 0672a3be7730ce9b9fb556680d72bb6104713e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | count 8
; END.

int %f1() {
entry:
	ret int -1
}

int %f2(int %a) {
entry:
	%tmpnot = xor int %a, -1		; <int> [#uses=1]
	ret int %tmpnot
}

int %f3(int %a) {
entry:
	%tmp1 = shl int %a, ubyte 2		; <int> [#uses=1]
	%tmp1not = xor int %tmp1, -1		; <int> [#uses=1]
	ret int %tmp1not
}

int %f4(int %a, ubyte %b) {
entry:
	%tmp3 = shl int %a, ubyte %b		; <int> [#uses=1]
	%tmp3not = xor int %tmp3, -1		; <int> [#uses=1]
	ret int %tmp3not
}

uint %f5(uint %a) {
entry:
	%tmp1 = lshr uint %a, ubyte 2		; <uint> [#uses=1]
	%tmp1not = xor uint %tmp1, 4294967295		; <uint> [#uses=1]
	ret uint %tmp1not
}

uint %f6(uint %a, ubyte %b) {
entry:
	%tmp2 = lshr uint %a, ubyte %b		; <uint> [#uses=1]
	%tmp2not = xor uint %tmp2, 4294967295		; <uint> [#uses=1]
	ret uint %tmp2not
}

int %f7(int %a) {
entry:
	%tmp1 = ashr int %a, ubyte 2		; <int> [#uses=1]
	%tmp1not = xor int %tmp1, -1		; <int> [#uses=1]
	ret int %tmp1not
}

int %f8(int %a, ubyte %b) {
entry:
	%tmp3 = ashr int %a, ubyte %b		; <int> [#uses=1]
	%tmp3not = xor int %tmp3, -1		; <int> [#uses=1]
	ret int %tmp3not
}

int %f9() {
entry:
        %tmp4845 = add int 0, 0
        br  label %cond_true4848

cond_true4848:          ; preds = %bb4835
        %tmp4851 = sub int -3, 0                ; <int> [#uses=1]
        %abc = add int %tmp4851, %tmp4845
        ret int %abc
}

bool %f10(int %a) {
entry:
        %tmp102 = seteq int -2, %a              ; <bool> [#uses=1]
        ret bool %tmp102
}