summaryrefslogtreecommitdiff
path: root/test/llvm_autogenerated/reg-stackify.s
blob: 1fffec602c67a8d82d05aa131284e5474bfa8327 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
	.text
	.file	"/s/llvm/llvm/test/CodeGen/WebAssembly/reg-stackify.ll"
	.globl	no0
	.type	no0,@function
no0:
	.param  	i32, i32
	.result 	i32
	i32.load	$1=, 0($1)
	i32.const	$push0=, 0
	i32.store	$discard=, 0($0), $pop0
	return  	$1
.Lfunc_end0:
	.size	no0, .Lfunc_end0-no0

	.globl	no1
	.type	no1,@function
no1:
	.param  	i32, i32
	.result 	i32
	i32.load	$1=, 0($1)
	i32.const	$push0=, 0
	i32.store	$discard=, 0($0), $pop0
	return  	$1
.Lfunc_end1:
	.size	no1, .Lfunc_end1-no1

	.globl	yes0
	.type	yes0,@function
yes0:
	.param  	i32, i32
	.result 	i32
	i32.const	$push1=, 0
	i32.store	$discard=, 0($0), $pop1
	i32.load	$push0=, 0($1)
	return  	$pop0
.Lfunc_end2:
	.size	yes0, .Lfunc_end2-yes0

	.globl	yes1
	.type	yes1,@function
yes1:
	.param  	i32
	.result 	i32
	i32.load	$push0=, 0($0)
	return  	$pop0
.Lfunc_end3:
	.size	yes1, .Lfunc_end3-yes1

	.globl	stack_uses
	.type	stack_uses,@function
stack_uses:
	.param  	i32, i32, i32, i32
	.result 	i32
	.local  	i32, i32
	i32.const	$5=, 2
	i32.const	$4=, 1
	block
	i32.lt_s	$push0=, $0, $4
	i32.lt_s	$push1=, $1, $5
	i32.xor 	$push4=, $pop0, $pop1
	i32.lt_s	$push2=, $2, $4
	i32.lt_s	$push3=, $3, $5
	i32.xor 	$push5=, $pop2, $pop3
	i32.xor 	$push6=, $pop4, $pop5
	i32.ne  	$push7=, $pop6, $4
	br_if   	$pop7, 0
	i32.const	$push8=, 0
	return  	$pop8
.LBB4_2:
	end_block
	return  	$4
.Lfunc_end4:
	.size	stack_uses, .Lfunc_end4-stack_uses

	.globl	multiple_uses
	.type	multiple_uses,@function
multiple_uses:
	.param  	i32, i32, i32
	.local  	i32
	i32.load	$3=, 0($2)
	block
	i32.ge_u	$push0=, $3, $1
	br_if   	$pop0, 0
	i32.lt_u	$push1=, $3, $0
	br_if   	$pop1, 0
	i32.store	$discard=, 0($2), $3
.LBB5_3:
	end_block
	return
.Lfunc_end5:
	.size	multiple_uses, .Lfunc_end5-multiple_uses


	.section	".note.GNU-stack","",@progbits